code: def get_input_shape(model, operation, input_idx=0):
      value_info_idx = next(
          (
              i
              for i, x in enumerate(model.graph.value_info)
              if x.name == operation.input[input_idx]
          ),
          0,
      )
      return [
          d.dim_value
          for d in model.graph.value_info[
              value_info_idx
          ].type.tensor_type.shape.dim
      ]
  
imports: import numpy
  import onnx
  from onnx import helper, numpy_helper, shape_inference
  from hls4ml.model import ModelGraph
label_desc: Use image node_id 4 for calling a global function with example usage: get_input_shape(model, operation, input_idx) and returns: unknown