code: def test_non_default_compute_units(self):
      non_default_compute_units = (
          ComputeUnit.CPU_AND_GPU,
          ComputeUnit.CPU_AND_NE,
          ComputeUnit.CPU_ONLY,
      )
      for cur_compute_unit in non_default_compute_units:
          compiled_model_path = compile_model(self.spec)
          self._test_compile_model_path(
              compiled_model_path, compute_units=cur_compute_unit
          )
  
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 7 for calling the TestCompiledModel obj's underlying member method code with example usage: obj.test_non_default_compute_units() without return types