code: def _logit_jax_like(
      x: Union[float, int, ivy.Array],
      /,
      *,
      fn_original: Optional[Callable] = None,
      eps: Optional[float] = None,
      out: Optional[ivy.Array] = None,
  ):
      real = ivy.real(x)
      imag = ivy.imag(x)
      if eps is None:
          real = ivy.where(
              ivy.logical_or(real > 1, real < 0), ivy.nan, real
          )
      else:
          real = ivy.clip(real, eps, 1 - eps)
      z = ivy.add(
          real, ivy.multiply(ivy.array(1j, dtype=x.dtype), imag)
      )
      z = ivy.log(z / (1 - z))
      return z
  
imports: from typing import Union, Optional, Callable, Literal
  import ivy
  from ivy.utils.backend import current_backend
  from ivy.utils.exceptions import handle_exceptions
  from ivy.func_wrapper import handle_array_function, handle_nestable, to_native_arrays_and_back, handle_array_like_without_promotion, handle_out_argument, inputs_to_ivy_arrays, handle_device, handle_backend_invalid, handle_complex_input
label_desc: Use image node_id 1 for calling a global function with example usage: _logit_jax_like() and returns: z