code: def test_open_img_returns_image_such_that_its_numpy_shape_would_be_h_w_when_reading_rgb_image_with_gray_is_true(
      samples_source, fn, expected
  ):
      image = open_img(samples_source / fn, gray=True)
  
      assert np.array(image).shape == expected
  
imports: import pytest
  from icevision.all import *
  from icevision.utils.imageio import open_gray_scale_image
label_desc: Use image node_id 4 for calling a global function with example usage: test_open_img_returns_image_such_that_its_numpy_shape_would_be_h_w_when_reading_rgb_image_with_gray_is_true(samples_source, fn, expected) without return types