code: def test_load_image_alpha_channel_image_converts(preprocess_mocker):
      PATH_ALPHA_IMAGE = p.parent / "data/alpha_channel_image.png"
      alpha_converted = (
          Image.open(PATH_ALPHA_IMAGE).convert("RGBA").convert("RGB")
      )
      load_image(PATH_ALPHA_IMAGE)
      preprocess_mocker.assert_called_once_with(
          alpha_converted, target_size=None, grayscale=False
      )
  
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 21 for calling a global function with example usage: test_load_image_alpha_channel_image_converts(preprocess_mocker) without return types