docstr: Test use of function attributes within subgraphs.
docstr_tok: ["Test","use","of","function","attributes","within","subgraphs","."]
code: def test_mi_function_subgraph_attr(self):
      """Test use of function attributes within subgraphs."""
      model = """
              <
                  ir_version: 7,
                  opset_import: [ "" : 17, "local" : 1]
              >
              agraph (float[N] x, bool flag) => (y)
              {
                  y = local.cast<target=6>(x, flag)
              }
              <
                  opset_import: [ "" : 17 ],
                  domain: "local"
              >
              cast<target>(x, flag) => (y)
              {
                  y = If (flag) <
                      then_branch = g1 () => (z_then) { z_then = Cast<to:int = @target> (x) },
                      else_branch = g2 () => (z_else) { z_else = Cast<to:int = @target> (x) }
                      >
              }
          """
      self._check(model, onnx.TensorProto.INT32)
  
file_path: onnx/onnx/test/model_inference_test.py
imports: import typing
  import unittest
  import onnx
  import onnx.parser
  import onnx.shape_inference
label_desc: Use image node_id 7 for calling the TestModelInference obj's underlying member method code with example usage: obj.test_mi_function_subgraph_attr() without return types