docstr: Reduce nonzeros with a ufunc over the minor axis when non-empty
  
  Can be applied to a function of self.data by supplying data parameter.
  Warning: this does not call sum_duplicates()
  
  Args:
      ufunc (object): Function handle giving the operation to be
          conducted.
      axis (int): Matrix over which the reduction should be
          conducted.
  
  Returns:
      (cupy.ndarray): Reduce result for nonzeros in each
      major_index.
code: def _minor_reduce(self, ufunc, axis, nonzero):
      """Reduce nonzeros with a ufunc over the minor axis when non-empty
  
      Can be applied to a function of self.data by supplying data parameter.
      Warning: this does not call sum_duplicates()
  
      Args:
          ufunc (object): Function handle giving the operation to be
              conducted.
          axis (int): Matrix over which the reduction should be
              conducted.
  
      Returns:
          (cupy.ndarray): Reduce result for nonzeros in each
          major_index.
  
      """
      out_shape = self.shape[1 - axis]
      # Call to the appropriate kernel function
      out = cupy.zeros(out_shape).astype(cupy.float64)
      if nonzero:
          kerns = {
              cupy.amax: self._max_nonzero_reduction_kern,
              cupy.amin: self._min_nonzero_reduction_kern,
          }
      else:
          kerns = {
              cupy.amax: self._max_reduction_kern,
              cupy.amin: self._min_reduction_kern,
          }
  
      kerns[ufunc](
          (out_shape,),
          (1,),
          (
              self.data.astype(cupy.float64),
              self.indptr[: len(self.indptr) - 1],
              self.indptr[1:],
              cupy.int64(self.shape[axis]),
              out,
          ),
      )
  
      return out
  
imports: import string
  import warnings
  import numpy
  import cupy
  import cupyx
  from cupy import _core
  from cupy._core import _scalar
  from cupy._creation import basic
  from cupyx.scipy.sparse import _base
  from cupyx.scipy.sparse import _coo
  from cupyx.scipy.sparse import _data
  from cupyx.scipy.sparse import _sputils
  from cupyx.scipy.sparse import _util
  from cupyx.scipy.sparse import _index
label_desc: Use image node_id 36 for calling the _compressed_sparse_matrix obj's underlying member method code with example usage: obj._minor_reduce(ufunc, axis, nonzero) and returns: out