code: def test_point():
      assert tuple(fitz.Point()) == (0, 0)
      assert fitz.Point(1, -1).unit == fitz.Point(5, -5).unit
      assert fitz.Point(-1, -1).abs_unit == fitz.Point(1, 1).unit
      assert fitz.Point(1, 1).distance_to(fitz.Point(1, 1)) == 0
      assert fitz.Point(1, 1).distance_to(fitz.Rect(1, 1, 2, 2)) == 0
      assert fitz.Point().distance_to((1, 1, 2, 2)) > 0
      failed = False
      try:
          p = fitz.Point(1, 2, 3)
      except:
          failed = True
      assert failed
  
      failed = False
      try:
          p = fitz.Point((1, 2, 3))
      except:
          failed = True
      assert failed
  
      failed = False
      try:
          p = fitz.Point(1, "x")
      except:
          failed = True
      assert failed
  
      failed = False
      try:
          p = fitz.Point()
          p[3] = 1
      except:
          failed = True
      assert failed
  
file_path: pymudf/tests/test_geometry.py
imports: import fitz
label_desc: Use image node_id 5 for calling a global function with example usage: test_point() without return types