code: def test_keypoints_transform(
      coco_keypoints_parser, check_attributes_on_component
  ):
      records = coco_keypoints_parser.parse(
          data_splitter=SingleSplitSplitter()
      )[0]
      tfm = tfms.A.Adapter(
          [tfms.A.Resize(427 * 2, 640 * 2), tfms.A.Normalize()]
      )
      # assert "keypoints" in tfm.tfms.processors.keys()
      # assert "bboxes" in tfm.tfms.processors.keys()
  
      ds = Dataset(records)
      tfm_ds = Dataset(records, tfm=tfm)
  
      record, tfmed = ds[0], tfm_ds[0]
      # assert "keypoints" in tfm.tfms.processors.keys()
      # assert "bboxes" in tfm.tfms.processors.keys()
      assert len(record.detection.keypoints) == 3
      assert len(tfmed.detection.keypoints) == 3
      assert set([c for c in tfmed.detection.keypoints[0].visible]) == {
          0.0,
          1.0,
          2.0,
      }
      assert set(
          [c for c in record.detection.keypoints[0].visible]
      ) == {0, 1, 2}
      assert (
          tfmed.detection.keypoints[0].x
          == record.detection.keypoints[0].x * 2
      ).all()
      assert (
          tfmed.detection.keypoints[0].y
          == record.detection.keypoints[0].y * 2
      ).all()
      check_attributes_on_component(tfmed)
  
file_path: icevision/tests/transforms/test_albu_transform.py
imports: from icevision.tfms.albumentations.albumentations_adapter import AlbumentationsMasksComponent
  import pytest
  from icevision.all import *
  from albumentations import LongestMaxSize, Normalize, PadIfNeeded
  from icevision.tfms.albumentations.albumentations_helpers import get_size_without_padding, get_transform
label_desc: Use image node_id 7 for calling a global function with example usage: test_keypoints_transform(coco_keypoints_parser, check_attributes_on_component) without return types