code: def test_parse_function_with_attributes(self) -> None:
      input = """
              <
              ir_version: 9,
              opset_import: [ "" : 15, "custom_domain" : 1],
              producer_name: "FunctionProtoTest",
              producer_version: "1.0",
              model_version: 1,
              doc_string: "A test model for model local functions."
            >
           agraph (float[N] x) => (float[N] out)
           {
              out = custom_domain.Selu<alpha=2.0, gamma=3.0>(x)
           }
           <
           domain: "custom_domain",
           opset_import: [ "" : 15],
           doc_string: "Test function proto"
           >
             Selu
             <alpha: float=1.67326319217681884765625, gamma: float=1.05070102214813232421875>
             (X) => (C)
             {
                 constant_alpha = Constant<value_float: float=@alpha>()
                 constant_gamma = Constant<value_float: float=@gamma>()
                 alpha_x = CastLike(constant_alpha, X)
                 gamma_x = CastLike(constant_gamma, X)
                 exp_x = Exp(X)
                 alpha_x_exp_x = Mul(alpha_x, exp_x)
                 alpha_x_exp_x_ = Sub(alpha_x_exp_x, alpha_x)
                 neg = Mul(gamma_x, alpha_x_exp_x_)
                 pos = Mul(gamma_x, X)
                 _zero = Constant<value_float=0.0>()
                 zero = CastLike(_zero, X)
                 less_eq = LessOrEqual(X, zero)
                 C = Where(less_eq, neg, pos)
             }
          """
  
      model = onnx.parser.parse_model(input)
      checker.check_model(model)
  
file_path: onnx/onnx/test/parser_test.py
imports: import unittest
  from parameterized import parameterized
  import onnx
  from onnx import GraphProto, OperatorSetIdProto, checker
label_desc: Use image node_id 6 for calling the TestBasicFunctions obj's underlying member method code with example usage: obj.test_parse_function_with_attributes() without return types