code: def test_record_load(record):
      record_loaded = record.load()
  
      assert isinstance(record_loaded.img, PIL.Image.Image)
      # assert isinstance(record_loaded.detection.mask_array, MaskArray)
  
      # test original record is not modified
      assert record.img == None
      # assert isinstance(record.detection.masks[0], VocMaskFile)
  
      # test unload
      record_loaded.unload()
      assert record_loaded.img == None
  
file_path: icevision/tests/core/test_record.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 6 for calling a global function with example usage: test_record_load(record) without return types