code: def _detections_to_keypoints(detection_list):
      keypoints = []
      for detection in detection_list:
          n_points = random.randint(1, 5)
          x1, y1, w, h = detection.bounding_box
          rand_point = lambda: (
              random.uniform(x1, x1 + w),
              random.uniform(y1, y1 + h),
          )
          points = [rand_point() for _ in range(n_points)]
          keypoint = fo.Keypoint(points=points, label=detection.label)
          keypoints.append(keypoint)
  
      return fo.Keypoints(keypoints=keypoints)
  
imports: import random
  import unittest
  import fiftyone
  import fiftyone.zoo
  from fiftyone import ViewField
label_desc: Use image node_id 18 for calling a global function with example usage: _detections_to_keypoints(detection_list) and returns: fo