code: def to_numpy(tensor):
      return (
          tensor.detach().cpu().numpy()
          if tensor.requires_grad
          else tensor.cpu().numpy()
      )
  
file_path: deep-learning-for-image-processing/pytorch_object_detection/yolov3_spp/export_onnx.py
imports: import os
  import torch
  import cv2
  import torch.onnx
  import onnx
  import onnxruntime
  import numpy
  import models
  from build_utils import img_utils
label_desc: Use image node_id 1 for calling a global function with example usage: to_numpy(tensor) and returns: unknown