code: def mock_det():
      class FakeDetection:
          def __init__(self, points, scores=None, label=None) -> None:
              if not isinstance(points, np.ndarray):
                  points = np.array(points)
              self.points = points
  
              if scores is not None and not isinstance(
                  scores, np.ndarray
              ):
                  scores = np.array(scores)
                  if scores.ndim == 0 and points.shape[0] > 1:
                      scores = np.full(points.shape[0], scores)
              self.scores = scores
              self.label = label
  
      return FakeDetection
  
imports: import numpy
  import pytest
  from norfair.utils import validate_points
label_desc: Use image node_id 1 for calling a global function with example usage: mock_det() and returns: FakeDetection