code: def read_and_fit(
      filepath_or_array: typing.Union[str, np.ndarray],
      width: int,
      height: int,
      cval: int = 255,
      mode="letterbox",
  ):
      """Read an image from disk and fit to the specified size.
  
      Args:
          filepath: The path to the image or numpy array of shape HxWx3
          width: The new width
          height: The new height
          cval: The constant value to use to fill the remaining areas of
              the image
          mode: The mode to pass to "fit" (crop or letterbox)
  
      Returns:
          The new image
      """
      image = (
          read(filepath_or_array)
          if isinstance(filepath_or_array, str)
          else filepath_or_array
      )
      image = fit(
          image=image, width=width, height=height, cval=cval, mode=mode
      )
      return image
  
imports: import os
  import io
  import typing
  import hashlib
  import urllib.request
  import urllib.parse
  import cv2
  import imgaug
  import numpy
  import validators
  import typing_extensions
  import matplotlib.pyplot
  from shapely import geometry
  from scipy import spatial
label_desc: Use image node_id 13 for calling a global function with example usage: read_and_fit(filepath_or_array, width, height, cval, mode) and returns: image