code: def get_image_size(img: Tensor) -> List[int]:
      # Returns (w, h) of tensor image
      _assert_image_tensor(img)
      return [img.shape[-1], img.shape[-2]]
  
imports: import warnings
  from typing import List, Optional, Tuple, Union
  import torch
  from torch import Tensor
  from torch.nn.functional import conv2d, grid_sample, interpolate, pad
label_desc: Use image node_id 4 for calling a global function with example usage: get_image_size(img) and returns: list