code: def _torch_to_numpy(tensor):
      import torch
  
      with torch.no_grad():
          tensor = tensor.cpu()
          if tensor.dtype == torch.bfloat16:
              tensor = tensor.to(torch.float)
  
          return tensor.numpy()
  
label_desc: Use image node_id 1 for calling a global function with example usage: _torch_to_numpy(tensor) and returns: tensor