code: def record_keypoints():
      record = BaseRecord(
          (BBoxesRecordComponent(), KeyPointsRecordComponent())
      )
      record.detection.add_keypoints(
          [
              KeyPoints.from_xyv(
                  [0, 0, 0, 1, 1, 1, 2, 2, 2], TestKeypointsMetadata
              ),
              KeyPoints.from_xyv([0, 0, 0], TestKeypointsMetadata),
          ]
      )
      record.detection.add_bboxes([BBox.from_xyxy(1, 2, 4, 4)])
  
      return record
  
file_path: icevision/tests/core/test_record.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 8 for calling a global function with example usage: record_keypoints() and returns: record