code: def test_load_image_all_inputs_correct():
      target_size = (8, 8)
      loaded_image = load_image(
          image_file=PATH_SINGLE_IMAGE,
          target_size=target_size,
          grayscale=True,
      )
      assert isinstance(loaded_image, np.ndarray)
      assert loaded_image.shape == target_size
      assert np.issubdtype(np.uint8, loaded_image.dtype)
  
imports: import pytest
  from pathlib import Path
  import numpy
  from PIL import Image
  from imagededup.utils.image_utils import preprocess_image, load_image, _check_3_dim, _add_third_dim, _raise_wrong_dim_value_error, check_image_array_hash, expand_image_array_cnn
label_desc: Use image node_id 23 for calling a global function with example usage: test_load_image_all_inputs_correct() without return types