code: def where(cond, x1=None, x2=None, /):
      if x1 is None and x2 is None:
          # numpy where behaves as np.asarray(condition).nonzero() when x and y
          # not included
          return ivy.asarray(cond).nonzero()
      elif x1 is not None and x2 is not None:
          x1, x2 = promote_types_of_numpy_inputs(x1, x2)
          return ivy.where(cond, x1, x2)
      else:
          raise ivy.utils.exceptions.IvyException(
              "where takes either 1 or 3 arguments"
          )
  
file_path: ivy/ivy/functional/frontends/numpy/sorting_searching_counting/searching.py
imports: import ivy
  from ivy.functional.frontends.numpy import promote_types_of_numpy_inputs
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, from_zero_dim_arrays_to_scalar, handle_numpy_out
label_desc: Use image node_id 11 for calling a global function with example usage: where() and returns: ivy, ivy