code: def get_size(x):
      if isinstance(x, np.ndarray):
          return len(x)
      elif isinstance(x, dict):
          for k, v in x.items():
              return len(v)
      elif isinstance(x, tuple) or isinstance(x, list):
          return len(x[0])
      else:
          raise ValueError(
              "data should be an ndarray, a dict of ndarrays, a tuple of ndarrays"
              " or a list of ndarrays, please check your input"
          )
  
imports: import os
  import numpy
  from zoo.common import get_file_list
  from zoo.util.utils import convert_row_to_numpy
label_desc: Use image node_id 18 for calling a global function with example usage: get_size(x) and returns: len, len, len