code: def __init__(self, onnx_node, run_params):  # type: ignore
      OpRun.__init__(self, onnx_node, run_params)
      if "opsets" not in self.run_params:
          raise KeyError("run_params must contains key 'opsets'.")
      if "verbose" not in run_params:
          raise KeyError("run_params must contains key 'verbose'.")
      if "existing_functions" not in self.run_params:
          raise KeyError(
              "run_params must contains key 'existing_functions'."
          )
  
file_path: onnx/onnx/reference/ops/op_if.py
imports: from __future__ import annotations
  import numpy
  from onnx.reference.op_run import OpRun
label_desc: Use image node_id 1 to create a new If object from inherited base classes: OpRun with example: obj = If(onnx_node, run_params)