code: def _ivy_to_numpy(x: Any) -> Any:
      if isinstance(x, ivy.Array) or ivy.is_native_array(x):
          a = np_frontend.ndarray(x, _init_overload=True)
          return a
      else:
          return x
  
imports: import functools
  from typing import Callable, Any
  import inspect
  import platform
  import ivy
  import ivy.functional.frontends.numpy
label_desc: Use image node_id 8 for calling a global function with example usage: _ivy_to_numpy(x) and returns: a, x