code: def fix(
      x,
      /,
      out=None,
  ):
      where = ivy.greater_equal(x, 0)
      return ivy.where(
          where, ivy.floor(x, out=out), ivy.ceil(x, out=out), out=out
      )
  
file_path: ivy/ivy/functional/frontends/numpy/mathematical_functions/rounding.py
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, handle_numpy_casting, handle_numpy_dtype, from_zero_dim_arrays_to_scalar, handle_numpy_out
label_desc: Use image node_id 6 for calling a global function with example usage: fix(out) and returns: ivy