code: def mock_obj(mock_det):
      class FakeTrackedObject:
          def __init__(self, points, scores=None, label=None):
              if not isinstance(points, np.ndarray):
                  points = np.array(points)
  
              self.estimate = points
              self.last_detection = mock_det(points, scores=scores)
              self.label = label
  
      return FakeTrackedObject
  
imports: import numpy
  import pytest
  from norfair.utils import validate_points
label_desc: Use image node_id 2 for calling a global function with example usage: mock_obj(mock_det) and returns: FakeTrackedObject