code: def convert_to_py_number(value) -> object:
      """
      Converts numpy objects or tensors to python number types
      """
      if isinstance(value, int):
          return int(value)
  
      if isinstance(value, float):
          return float(value)
  
      if is_numpy_array(value):
          return value.item()
  
      if is_numpy_number(value):
          return value.item()
  
      if is_jax_device_array(value):
          return value.item()
  
      if is_pytorch_tensor(value):
          return value.item()
  
      if is_tf_tensor(value):
          return value.numpy().item()
  
      raise ValueError("not a number")
  
file_path: aim/aim/sdk/num_utils.py
label_desc: Use image node_id 11 for calling a global function with example usage: convert_to_py_number(value) and returns: int, float, value, value, value, value, value