code: def _raise_wrong_dim_value_error(image_arr_shape: Tuple) -> None:
      """
      Raises ValueError when image array shape is wrong.
  
      Args:
          image_arr_shape: Image array shape.
      """
      raise ValueError(
          f"Received image array with shape: {image_arr_shape}, expected number of image array dimensions are 3 for "
          f"rgb image and 2 for grayscale image!"
      )
  
file_path: imagededup/imagededup/utils/image_utils.py
imports: from pathlib import PurePath
  from typing import List, Union, Tuple
  import numpy
  from PIL import Image
  from imagededup.utils.logger import return_logger
label_desc: Use image node_id 3 for calling a global function with example usage: _raise_wrong_dim_value_error(image_arr_shape) without return types