code: def get_mlmodel():
      import coremltools as ct
  
      prog = get_test_program()
      mlmodel = ct.convert(
          prog,
          convert_to="mlprogram",
          compute_precision=ct.precision.FLOAT32,
      )
      return mlmodel
  
imports: import tempfile
  from coremltools.converters.mil.testing_utils import get_op_types_in_program
  from coremltools.test.optimize.coreml.test_passes import TestCompressionPasses
  from coremltools.test.optimize.coreml.test_passes import TestConfigurationFromDictFromYaml
label_desc: Use image node_id 2 for calling a global function with example usage: get_mlmodel() and returns: mlmodel