code: def get_size(item):
      
      if isinstance(item, (list, set, tuple, dict)):
          return len(item)
      elif isinstance(item, (ndarray, MaskedArray)):
          return item.shape
      elif isinstance(item, Image):
          return item.size
      if isinstance(item, (DataFrame, Index, Series)):
          return item.shape
      else:
          return 1
docs: Return size of an item of arbitrary type