code: def tensor_type(item: Any) -> str:
      module_name = type(item).__module__
      class_name = type(item).__name__
  
      if module_name == "torch" and class_name == "Tensor":
          return TensorType.Torch
      elif (
          module_name.startswith("tensorflow")
          and class_name == "EagerTensor"
      ):
          return TensorType.TF
      elif isinstance(item, numbers.Number):
          return TensorType.Numeric
      elif isinstance(item, np.ndarray):
          return TensorType.Numpy
      else:
          return TensorType.Other
  
file_path: tensorwatch/tensorwatch/tensor_utils.py
imports: from typing import Sized, Any, List
  import numbers
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: tensor_type(item) and returns: TensorType, TensorType, TensorType, TensorType, TensorType