code: def to_scaler_list(l: Sized) -> List[numbers.Number]:
      """Create list of scalers for given list of tensors where each element is 0-dim tensor"""
      if l is not None and len(l):
          tt = tensor_type(l[0])
          if tt == TensorType.Torch or tt == TensorType.Numpy:
              return [i.item() for i in l]
          elif tt == TensorType.TF:
              return [i.numpy().item() for i in l]
          elif tt == TensorType.Numeric:
              # convert to list in case l is not list type
              return [i for i in l]
          else:
              raise ValueError(
                  "Cannot convert tensor list to scaler list \
  because list element are of unsupported type "
                  + tt
              )
      else:
          return None if l is None else []
  
file_path: tensorwatch/tensorwatch/tensor_utils.py
imports: from typing import Sized, Any, List
  import numbers
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: to_scaler_list(l) and returns: unknown, unknown, unknown, unknown