code: def get_img_shape(img: torch.Tensor) -> Tuple[int, int]:
      """Get the shape of an image"""
      return img.shape[-2:]
  
file_path: doctr/doctr/io/image/pytorch.py
imports: from io import BytesIO
  from typing import Tuple
  import numpy
  import torch
  from PIL import Image
  from torchvision.transforms.functional import to_tensor
  from doctr.utils.common_types import AbstractPath
label_desc: Use image node_id 5 for calling a global function with example usage: get_img_shape(img) and returns: img