code: def _run(self, data, detect_negative=None, detect_positive=None):  # type: ignore
      if detect_negative:
          if detect_positive:
              return (np.isinf(data),)
          return (np.isneginf(data),)
      if detect_positive:
          return (np.isposinf(data),)
      res = np.full(data.shape, dtype=np.bool_, fill_value=False)
      return (res,)
  
imports: import numpy
  from onnx.reference.op_run import OpRun
label_desc: Use image node_id 1 for calling the IsInf obj's underlying member method code with example usage: obj._run(data, detect_negative, detect_positive) and returns: res, np, np, np