code: def test_export_coreml(self):
      import coremltools
      import platform
  
      max_iters_ans = [str(self.max_iterations), "1"]
      warm_start_ans = (
          "" if self.warm_start is None else self.warm_start
      )
      for i, model in enumerate(self.models):
          filename = tempfile.NamedTemporaryFile(suffix=".mlmodel").name
          model.export_coreml(filename)
  
          # Load the model back from the CoreML model file
          coreml_model = coremltools.models.MLModel(filename)
          metadata = coreml_model.user_defined_metadata
  
          self.assertEqual(
              metadata["com.github.apple.turicreate.version"],
              _tc.__version__,
          )
          self.assertEqual(
              metadata["com.github.apple.os.platform"],
              platform.platform(),
          )
          self.assertEqual(metadata["type"], "drawing_classifier")
          self.assertEqual(metadata["version"], "2")
          self.assertEqual(metadata["target"], self.target)
          self.assertEqual(metadata["feature"], self.feature)
          self.assertEqual(metadata["warm_start"], warm_start_ans)
          self.assertEqual(metadata["max_iterations"], max_iters_ans[i])
  
          expected_result = (
              "Drawing classifier created by Turi Create (version %s)"
              % (_tc.__version__)
          )
          self.assertEquals(
              expected_result, coreml_model.short_description
          )
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import os
  import turicreate
  from turicreate.toolkits._main import ToolkitError
  import numpy
  import tempfile
  from array import array
  import sys
  from .None import util
  import unittest
label_desc: Use image node_id 25 for calling the DrawingClassifierTest obj's underlying member method code with example usage: obj.test_export_coreml() without return types