code: def square_center_crop(src: Image.Image) -> Image.Image:
      """Returns a square crop of the center of the image"""
      w, h = src.size
      smallest_edge = min(w, h)
      dx = (w - smallest_edge) // 2
      dy = (h - smallest_edge) // 2
      return src.crop((dx, dy, dx + smallest_edge, dy + smallest_edge))
  
file_path: AugLy/augly/image/utils/utils.py
imports: import functools
  import json
  import math
  import os
  from typing import List, Optional, Tuple, Union
  import numpy
  from augly import utils
  from PIL import Image
label_desc: Use image node_id 9 for calling a global function with example usage: square_center_crop(src) and returns: src