code: def test_mlmodel_file_input(self):
      with TemporaryDirectory() as save_dir:
          file_path = save_dir + "/m.mlmodel"
          MLModel(self.spec).save(file_path)
  
          with pytest.raises(
              TypeError, match=", first load the model, "
          ):
              compiled_model_path = compile_model(file_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 3 for calling the TestCompiledModel obj's underlying member method code with example usage: obj.test_mlmodel_file_input() without return types