How do you know if (5,-7) (6,-7) (-8-1) (0,-1) is a function?

For these points, every $x$ value is unique, so no Vertical Line can be drawn as described above, so it is a function.