code: def where(condition: Array, x1: Array, x2: Array, /) -> Array:
      """
      Array API compatible wrapper for :py:func:`np.where <numpy.where>`.
  
      See its docstring for more information.
      """
      # Call result type here just to raise on disallowed type combinations
      _result_type(x1.dtype, x2.dtype)
      x1, x2 = Array._normalize_two_args(x1, x2)
      return Array._new(
          np.where(condition._array, x1._array, x2._array)
      )
  
file_path: numpy/numpy/array_api/_searching_functions.py
imports: from __future__ import annotations
  from ._array_object import Array
  from ._dtypes import _result_type, _real_numeric_dtypes
  from typing import Optional, Tuple
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: where() and returns: Array