code: def to_ivy_arrays_and_back(fn: Callable) -> Callable:
      """Wrap `fn` so it receives and returns `ivy.Array` instances.
  
      Wrap `fn` so that input arrays are all converted to `ivy.Array` instances and
      return arrays are all converted to `ndarray` instances.
      """
      return outputs_to_frontend_arrays(inputs_to_ivy_arrays(fn))
  
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 21 for calling a global function with example usage: to_ivy_arrays_and_back(fn) and returns: outputs_to_frontend_arrays