code: def test_mask_transform_with_unload(
      records, check_attributes_on_component
  ):
      tfm = tfms.A.Adapter([tfms.A.HorizontalFlip(p=1.0)])
      tfm_ds = Dataset(records, tfm=tfm)
  
      tfmed = tfm_ds[0]
      original_mask_array = tfmed.detection.mask_array
  
      assert tfmed.detection.mask_array.data.any()
  
      tfmed.unload()
  
      assert not tfmed.detection.mask_array
  
      tfmed.detection.mask_array = MaskArray.from_masks(
          tfmed.detection.masks, tfmed.height, tfmed.width
      )
  
      assert np.array_equal(
          tfmed.detection.mask_array.data, original_mask_array.data
      )
      check_attributes_on_component(tfmed)
  
      # # assert orignal record was not changed
      record = records[0]
      assert len(record.detection.label_ids) == 1
      assert len(record.detection.bboxes) == 1
      assert len(record.detection.masks) == 1
      assert len(record.detection.iscrowds) == 1
      assert len(record.detection.areas) == 1
      check_attributes_on_component(record)
  
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 13 for calling a global function with example usage: test_mask_transform_with_unload(records, check_attributes_on_component) without return types