code: def test_destination_path_parameter(self):
      # Check correct usage
      with TemporaryDirectory() as temp_dir:
          dst_path = temp_dir + "/foo.mlmodelc"
          compiled_model_path = compile_model(self.spec, dst_path)
          self._test_compile_model_path(compiled_model_path)
  
      # Check bad input
      with TemporaryDirectory() as temp_dir:
          dst_path = temp_dir + "/foo.badFileExtension"
          with pytest.raises(Exception, match=" file extension."):
              compiled_model_path = compile_model(self.spec, dst_path)
  
file_path: coremltools/coremltools/test/neural_network/test_compiled_model.py
imports: from shutil import copytree, rmtree
  from tempfile import TemporaryDirectory
  import pytest
  from coremltools import ComputeUnit
  from coremltools.models import CompiledMLModel, MLModel
  from coremltools.models.utils import compile_model, load_spec, save_spec
  from coremltools.proto import Model_pb2
label_desc: Use image node_id 8 for calling the TestCompiledModel obj's underlying member method code with example usage: obj.test_destination_path_parameter() without return types