code: def test_record_keypoints(record_keypoints):
      assert len(record_keypoints.detection.keypoints) == 2
      assert (
          record_keypoints.detection.keypoints[1].n_visible_keypoints
          == 0
      )
      assert (
          record_keypoints.detection.keypoints[0].visible
          == np.array([0, 1, 2])
      ).all()
      assert (
          record_keypoints.detection.keypoints[0].x
          == np.array([0, 1, 2])
      ).all()
      assert record_keypoints.detection.bboxes == [
          BBox.from_xyxy(1, 2, 4, 4)
      ]
      assert (
          record_keypoints.detection.keypoints[1].y
          == KeyPoints.from_xyv([0, 0, 0], TestKeypointsMetadata).y
      ).all()
      assert (
          record_keypoints.detection.keypoints[0].metadata
          == TestKeypointsMetadata
      )
  
file_path: icevision/tests/core/test_record.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 9 for calling a global function with example usage: test_record_keypoints(record_keypoints) without return types