Which is used to determine if a relation is a function

1. 3D line test
2.diagonal line test
3.horizontal line test
4.vertical line test