code: def _from_jax_frontend_array_to_ivy_array(x):
      if (
          isinstance(x, jax_frontend.Array)
          and x.weak_type
          and x.ivy_array.shape == ()
      ):
          setattr(x.ivy_array, "weak_type", True)
          return x.ivy_array
      if hasattr(x, "ivy_array"):
          return x.ivy_array
      return x
  
file_path: ivy/ivy/functional/frontends/jax/func_wrapper.py
imports: import functools
  from typing import Callable
  import inspect
  import ivy
  import ivy.functional.frontends.jax
  import ivy.functional.frontends.numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _from_jax_frontend_array_to_ivy_array(x) and returns: x, x, x