code: def _run(self, x, axis=None):  # type: ignore
      axis = axis or self.axis  # type: ignore
      x_argmax = np.argmax(x, axis=axis)  # type: ignore
      y = np.zeros_like(x)
      np.put_along_axis(
          y, np.expand_dims(x_argmax, axis=axis), 1, axis=axis  # type: ignore
      )
      return (y,)
  
imports: import numpy
  from onnx.reference.ops._op import OpRunUnaryNum
label_desc: Use image node_id 1 for calling the Hardmax obj's underlying member method code with example usage: obj._run(x, axis) and returns: y