code: def log_img_scale(img_scale, shape_order="hw", skip_square=False):
      """Log image size.
  
      Args:
          img_scale (tuple): Image size to be logged.
          shape_order (str, optional): The order of image shape.
              'hw' for (height, width) and 'wh' for (width, height).
              Defaults to 'hw'.
          skip_square (bool, optional): Whether to skip logging for square
              img_scale. Defaults to False.
  
      Returns:
          bool: Whether to have done logging.
      """
      if shape_order == "hw":
          height, width = img_scale
      elif shape_order == "wh":
          width, height = img_scale
      else:
          raise ValueError(f"Invalid shape_order {shape_order}.")
  
      if skip_square and (height == width):
          return False
  
      caller = get_caller_name()
      print_log(
          f"image shape: height={height}, width={width} in {caller}",
          logger="current",
      )
  
      return True
  
imports: import inspect
  from mmengine.logging import print_log
label_desc: Use image node_id 2 for calling a global function with example usage: log_img_scale(img_scale, shape_order, skip_square) and returns: True, False