code: def get_op_input_dims(self, op_def, idx):
      input_name = op_def.input[idx]
      for const_tensor in self.net_def.tensors:
          if input_name == const_tensor.name:
              return const_tensor.dims
      for pre_op in self.net_def.op:
          for i in range(len(pre_op.output)):
              if pre_op.output[i] == input_name:
                  return pre_op.output_shape[i].dims
      return None
  
imports: from py_proto import mace_pb2
  from utils.config_parser import ModelKeys
  from utils.util import mace_check
  from transform.base_converter import MaceKeyword
  from transform.base_converter import MaceOp
label_desc: Use image node_id 9 for calling the ScratchComputer obj's underlying member method code with example usage: obj.get_op_input_dims(op_def, idx) and returns: None, const_tensor, pre_op