code: def test_inference_with_conflow(self) -> None:
      model_script = """
          <
              ir_version: 8,
              opset_import: ["" : 18, "onnxscript.atenlib" : 1],
              producer_name: "pytorch",
              producer_version: "2.1.0"
          >
          torch_jit (float input_0) => (float reault, int64 index)
          {
              reault, index = onnxscript.atenlib.aten_min_dim <dim = 0, keepdim = 1> (input_0)
          }
          <
              domain: "onnxscript.atenlib",
              opset_import: ["" : 18]
          >
          aten_min_dim <dim>(self) => (result_7, indices_6)
          {
              tmp = Shape (self)
              tmp_0 = Size (tmp)
              tmp_1 = Constant <value = int64 tmp_1 {0}> ()
              tmp_1_cast = CastLike (tmp_1, tmp_0)
              tmp_2 = Equal (tmp_0, tmp_1_cast)
              cond = Not (tmp_2)
              indices_6, result_7 = If (cond) <
                  then_branch = thenGraph_4 () => ( indices,  result) {
                      dim = Constant <value_int: int = @dim> ()
                      tmp_3 = Constant <value_ints = [-1]> ()
                      dims = Reshape (dim, tmp_3)
                      result = ReduceMin <keepdims: int = @keepdim> (self, dims)
                      indices = ArgMin <axis: int = @dim, keepdims: int = @keepdim> (self)
                  }, else_branch = elseGraph_4 () => ( indices_4,  result_5) {
                      indices_4 = Constant <value_int = 0> ()
                      result_5 = Identity (self)
                  }
              >
          }
          """
      model = onnx.parser.parse_model(model_script)
      onnx.shape_inference.infer_shapes(model, strict_mode=False)
      with self.assertRaises(onnx.shape_inference.InferenceError):
          onnx.shape_inference.infer_shapes(model, strict_mode=True)
  
file_path: onnx/onnx/test/inference_function_test.py
imports: import unittest
  from typing import Dict, List, Optional, Tuple, Union
  import numpy
  import onnx
  from onnx import TensorProto, TypeProto
  from onnx.checker import ValidationError
  from onnx.defs import OpSchema, get_all_schemas_with_history, get_schema
  from onnx.helper import make_graph, make_node, make_opsetid, make_tensor_type_proto, make_tensor_value_info
  from onnx.numpy_helper import from_array
  from onnx.shape_inference import InferenceError, infer_node_outputs
label_desc: Use image node_id 5 for calling the TestInferenceFunctionCall obj's underlying member method code with example usage: obj.test_inference_with_conflow() without return types