class_docstr: Mixin for min and max methods.
  These are not implemented for dia_matrix, hence the separate class.
class_docstr_tok: ["Mixin","for","min","and","max","methods",".","These","are","not","implemented","for","dia_matrix",",","hence","the","separate","class","."]
code: def _arg_min_or_max_axis(self, axis, op):
      if self.shape[axis] == 0:
          raise ValueError(
              "Can't apply the operation along a zero-sized "
              "dimension."
          )
  
      mat = self.tocsc() if axis == 0 else self.tocsr()
      mat.sum_duplicates()
  
      # Do the reduction
      value = mat._arg_minor_reduce(op, axis)
  
      if axis == 0:
          return value[None, :]
      else:
          return value[:, None]
  
imports: import cupy
  import numpy
  from cupy._core import internal
  from cupy import _util
  from cupyx.scipy.sparse import _base
  from cupyx.scipy.sparse import _coo
  from cupyx.scipy.sparse import _sputils
label_desc: Use image node_id 3 for calling the _minmax_mixin obj's underlying member method code with example usage: obj._arg_min_or_max_axis(axis, op) and returns: value, value