code: def logit(
      x: JaxArray,
      /,
      *,
      eps: Optional[float] = None,
      complex_mode: Literal["split", "magnitude", "jax"] = "jax",
      out: Optional[JaxArray] = None,
  ):
      if eps is None:
          x = jnp.where(jnp.logical_or(x > 1, x < 0), jnp.nan, x)
      else:
          x = jnp.clip(x, eps, 1 - eps)
      return jnp.log(x / (1 - x))
  
imports: from typing import Optional, Union, Literal
  import jax
  import jax.numpy
  from ivy.functional.backends.jax import JaxArray
  from jax import lax
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from .None import backend_version
label_desc: Use image node_id 1 for calling a global function with example usage: logit() and returns: jnp