code: def test_camera_motion(mock_coordinate_transformation):
      #
      # Simple test for camera motion
      #
      for one_d in [True, False]:
          tracker = Tracker("euclidean", 1, initialization_delay=0)
          if one_d:
              absolute_points = np.array([1, 1])
          else:
              absolute_points = np.array([[1, 1]])
  
          relative_points = absolute_points + 1
  
          coord_transformation_mock = mock_coordinate_transformation(
              relative_points=relative_points,
              absolute_points=absolute_points,
          )
  
          detection = Detection(relative_points)
          tracked_objects = tracker.update(
              [detection],
              coord_transformations=coord_transformation_mock,
          )
  
          # assert that the detection was correctly updated
          np.testing.assert_equal(
              detection.absolute_points,
              validate_points(absolute_points),
          )
          np.testing.assert_equal(
              detection.points, validate_points(relative_points)
          )
  
          # check the tracked_object
          assert len(tracked_objects) == 1
          obj = tracked_objects[0]
          np.testing.assert_almost_equal(
              obj.get_estimate(absolute=False),
              validate_points(relative_points),
          )
          np.testing.assert_almost_equal(
              obj.get_estimate(absolute=True),
              validate_points(absolute_points),
          )
          np.testing.assert_almost_equal(
              obj.estimate, validate_points(relative_points)
          )
  
file_path: norfair/tests/test_tracker.py
imports: import numpy
  import pytest
  from norfair import Detection, FilterPyKalmanFilterFactory, OptimizedKalmanFilterFactory, Tracker
  from norfair.utils import validate_points
label_desc: Use image node_id 6 for calling a global function with example usage: test_camera_motion(mock_coordinate_transformation) without return types