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'.")
      self.output_index = {n: i for i, n in enumerate(self.body.output_names)}  # type: ignore
      self.N = len(self.body.input_names) - 2  # type: ignore
      self.K = len(self.body.output_names) - self.N - 1
  
imports: import numpy
  from onnx.reference.op_run import OpRun
label_desc: Use image node_id 1 to create a new Loop object from inherited base classes: OpRun with example: obj = Loop(onnx_node, run_params)