def METHOD_NAME(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)