code: def test_gray_scale_record_load(gray_scale_record):
      record_loaded = gray_scale_record.load()
  
      assert isinstance(record_loaded.img, np.ndarray)
      # assert isinstance(record_loaded.detection.mask_array, MaskArray)
  
      # test original record is not modified
      assert gray_scale_record.img == None
      # assert isinstance(gray_scale_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 7 for calling a global function with example usage: test_gray_scale_record_load(gray_scale_record) without return types