class_docstr: Test the basic builder API.
class_docstr_tok: ["Test","the","basic","builder","API","."]
docstr: Basic creation of a program with multiple functions
docstr_tok: ["Basic","creation","of","a","program","with","multiple","functions"]
code: def test_program_with_multiple_functions(self):
      """
      Basic creation of a program with multiple functions
      """
  
      @mb.function(input_specs=[mb.TensorSpec(shape=(2, 4))])
      def func_1(x):
          return x
  
      @mb.function(input_specs=[mb.TensorSpec(shape=(2, 4))])
      def func_2(x):
          return x
  
      @mb.function(input_specs=[mb.TensorSpec(shape=(2, 4))])
      def func_3(x):
          return x
  
      prog = Program()
      prog.add_function("func_1", func_1)
      prog.add_function("func_2", func_2)
      prog.add_function("func_3", func_3)
  
      assert set(prog.functions.keys()) == set(
          ["func_1", "func_2", "func_3"]
      )
  
imports: import numpy
  import pytest
  import coremltools
  from coremltools import _logger
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import Function, Program, types
  from coremltools.converters.mil.mil.passes.tests.test_passes import CONSTEXPR_FUNCS
label_desc: Use image node_id 4 for calling the TestMILBuilderAPI obj's underlying member method code with example usage: obj.test_program_with_multiple_functions() and returns: x, x, x