code: def center_crop(img: np.ndarray, crop_height: int, crop_width: int):
      height, width = img.shape[:2]
      if height < crop_height or width < crop_width:
          raise ValueError(
              "Requested crop size ({crop_height}, {crop_width}) is "
              "larger than the image size ({height}, {width})".format(
                  crop_height=crop_height,
                  crop_width=crop_width,
                  height=height,
                  width=width,
              )
          )
      x1, y1, x2, y2 = get_center_crop_coords(
          height, width, crop_height, crop_width
      )
      img = img[y1:y2, x1:x2]
      return img
  
imports: from typing import Optional, Sequence, Tuple
  import cv2
  import numpy
  from albumentations.augmentations.utils import _maybe_process_in_chunks, preserve_channel_dim
  from ...core.bbox_utils import denormalize_bbox, normalize_bbox
  from ...core.transforms_interface import BoxInternalType, KeypointInternalType
  from ..geometric import functional
label_desc: Use image node_id 8 for calling a global function with example usage: center_crop(img, crop_height, crop_width) and returns: img