code: def list_length(x):
      if hasattr(x, "shape"):
          return x.shape[0]
      else:
          return len(x)
  
label_desc: Use image node_id 1 for calling a global function with example usage: list_length(x) and returns: x, len