code: def test_load_img_returns_image(tmpdir):
      path = write_sample_image(tmpdir)
      im = utils.load_img(path)
      assert isinstance(im, PIL.Image.Image)
  
file_path: keras-preprocessing/tests/image/utils_test.py
imports: import io
  import resource
  from pathlib import Path
  import numpy
  import PIL
  import pytest
  from keras_preprocessing.image import utils
label_desc: Use image node_id 7 for calling a global function with example usage: test_load_img_returns_image(tmpdir) without return types