code: def generate_inputs(self):
      eps = 1e-5
  
      # Sample x with single maximum/minimum value
      while True:
          x = numpy.random.uniform(-1, 1, self.shape).astype(self.dtype)
          if self.function_name == "max":
              y = x.max(axis=self.axis, keepdims=True)
              if not numpy.all(
                  (x > y - 2 * eps).sum(axis=self.axis) == 1
              ):
                  continue
          elif self.function_name == "min":
              y = x.min(axis=self.axis, keepdims=True)
              if not numpy.all(
                  (x < y + 2 * eps).sum(axis=self.axis) == 1
              ):
                  continue
          return (x,)
  
imports: import unittest
  import numpy
  import chainer
  from chainer import functions
  from chainer import testing
  from chainer import utils
label_desc: Use image node_id 2 for calling the TestMinMax obj's underlying member method code with example usage: obj.generate_inputs() and returns: x