code: def check_attributes_on_component():
      def _inner(record):
          for component in record.components:
              name = component_field[component.__class__]
              task_subfield = getattr(record, component.task.name)
              assert getattr(task_subfield, name) is getattr(
                  component, name
              )
  
      return _inner
  
imports: import pytest
  from icevision import *
  from icevision.imports import *
  from icevision.models.torchvision import faster_rcnn, keypoint_rcnn
  from icevision.models.ross import efficientdet
  from icevision.models.ross.efficientdet.backbones import *
  import albumentations
label_desc: Use image node_id 32 for calling a global function with example usage: check_attributes_on_component() and returns: _inner