code: def outputs_to_native_arrays(fn: Callable):
      @functools.wraps(fn)
      def outputs_to_native_arrays_torch(*args, **kwargs):
          ret = fn(*args, **kwargs)
          if isinstance(ret, torch_frontend.Tensor):
              ret = ret.ivy_array.data
          return ret
  
      outputs_to_native_arrays_torch.outputs_to_native_arrays_torch = (
          True
      )
      return outputs_to_native_arrays_torch
  
imports: import functools
  from typing import Callable
  import ivy
  import ivy.functional.frontends.torch
label_desc: Use image node_id 6 for calling a global function with example usage: outputs_to_native_arrays(fn) and returns: outputs_to_native_arrays_torch, ret