
    `iW                    :    d dl mZ ddlmZ ddlmZ d dlZddZdS )    )annotations   )Array)_integer_dtypesNxr   indicesaxisintreturnc                  |j         t          vrt          d          |j        dk    rt	          d          t          j        t          j        | j	        |j	        |                    S )zw
    Array API compatible wrapper for :py:func:`np.take <numpy.take>`.
    See its docstring for more information.
    z+Only integer dtypes are allowed in indexingr   z%Only 1-dim indices array is supported)r	   )
dtyper   	TypeErrorndim
ValueErrorr   _newnptake_array)r   r   r	   s      v/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/cupy/array_api/_indexing_functions.pyr   r      sa    
 }O++EFFF|q@AAA:bgahTBBBCCC    )r   r   r   r   r	   r
   r   r   )	
__future__r   _array_objectr   _dtypesr   cupyr   r    r   r   <module>r      sk    " " " " " "             $ $ $ $ $ $    	D 	D 	D 	D 	D 	Dr   