code: def setup(self):
      spec = Model_pb2.Model()
      spec.specificationVersion = 1
      input_ = spec.description.input.add()
      input_.name = "x"
      input_.type.doubleType.MergeFromString(b"")
  
      output_ = spec.description.output.add()
      output_.name = "y"
      output_.type.doubleType.MergeFromString(b"")
  
      lr = spec.glmRegressor
      lr.offset.append(0.1)
      weights = lr.weights.add()
      weights.value.append(2.0)
  
      spec.description.predictedFeatureName = "y"
      self.spec = spec
  
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 1 for calling the TestCompiledModel obj's underlying member method code with example usage: obj.setup() without return types