@testing.for_dtypes(dtypes=[numpy.int8, numpy.int16, numpy.int32, numpy.int64], name='result_dtype')
@testing.for_all_dtypes(name='in_dtype')
def test_argminmax_dtype(self, in_dtype, result_dtype):
    a = testing.shaped_random(self.shape, cupy, in_dtype)
    if self.is_module:
        func = getattr(cupy, self.func)
        y = func(a, dtype=result_dtype)
    else:
        func = getattr(a, self.func)
        y = func(dtype=result_dtype)
    assert (y.shape == ())
    assert (y.dtype == result_dtype)
@testing.for_dtypes(dtypes=[numpy.int8, numpy.int16, numpy.int32, numpy.int64], name='result_dtype')
@testing.for_all_dtypes(name='in_dtype')
def test_argminmax_dtype(self, in_dtype, result_dtype):
    a = testing.shaped_random(self.shape, cupy, in_dtype)
    if self.is_module:
        func = getattr(cupy, self.func)
        y = func(a, dtype=result_dtype)
    else:
        func = getattr(a, self.func)
        y = func(dtype=result_dtype)
    assert (y.shape == ())
    assert (y.dtype == result_dtype)