code: def test_get_img_size_from_data_returns_img_size_when_data_is_pil_img():
      expected_height = random.randrange(10, 1000)
      expected_width = random.randrange(10, 1000)
      data = np.random.randint(
          0, 256, (expected_height, expected_width), dtype=np.uint8
      )
      data = PIL.Image.fromarray(data)
  
      img_size = get_img_size_from_data(data)
  
      img_size == ImgSize(width=expected_width, height=expected_height)
  
imports: import pytest
  from icevision.all import *
  from icevision.utils.imageio import open_gray_scale_image
label_desc: Use image node_id 15 for calling a global function with example usage: test_get_img_size_from_data_returns_img_size_when_data_is_pil_img() without return types