code: def __init__(self, onnx_node, run_params):  # type: ignore
      OpRun.__init__(self, onnx_node, run_params)
      self.cst = (
          self.value[0] if isinstance(self.value, np.ndarray) else self.value  # type: ignore
      )
      if isinstance(self.cst, int):
          self.cst = np.int64(self.cst)
      elif isinstance(self.cst, float):
          self.cst = np.float64(self.cst)
      elif self.cst is None:
          self.cst = np.float32(0)
  
imports: import numpy
  from onnx.reference.op_run import OpRun
label_desc: Use image node_id 1 to create a new ConstantOfShape object from inherited base classes: OpRun with example: obj = ConstantOfShape(onnx_node, run_params)