#NEWLINE# @ testing . for_all_dtypes ( ) #NEWLINE# @ testing . numpy_cupy_array_equal ( ) #NEWLINE# def test_ones_like( self , xp , dtype ) : #NEWLINE# #INDENT# a = xp . ndarray ( ( 2 , 3 , 4 ) , dtype = dtype ) #NEWLINE# return xp . ones_like ( dtype )