code: def _ivy_array_to_onnx(x):
      if isinstance(x, ivy.Array) or ivy.is_native_array(x):
          return onnx_frontend.Tensor(x)
      return x
  
file_path: ivy/ivy/functional/frontends/onnx/func_wrapper.py
imports: import functools
  from typing import Callable
  import ivy
  import ivy.functional.frontends.onnx
label_desc: Use image node_id 2 for calling a global function with example usage: _ivy_array_to_onnx(x) and returns: x, onnx_frontend