code: def test_auto_ml_should_fail_at_init_when_services_are_missing(
      self, tmpdir
  ):
      self._setup(tmpdir)
      data_inputs = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
      expected_outputs = data_inputs * 2
      p = Pipeline(
          [
              RegisterServiceDynamically(),
              SomeStep().assert_has_services(SomeBaseService),
          ]
      )
  
      context = CX(root=self.tmpdir)
  
      auto_ml: AutoML = _make_autoML_loop(self.tmpdir_hp, p)
      auto_ml: StepWithContext = auto_ml.with_context(context=context)
      assert isinstance(auto_ml, StepWithContext)
  
      with pytest.raises(AssertionError) as exception_info:
          auto_ml.fit(data_inputs, expected_outputs)
  
      assert (
          "Expected context to have service of type SomeBaseService but it did not."
          in exception_info.value.args[0]
      )
  
imports: import os
  import shutil
  from abc import ABC, abstractmethod
  import numpy
  import pytest
  from neuraxle.base import CX, BaseService, BaseStep, BaseTransformerT, ForceHandleIdentity, Identity, NonFittableMixin, StepWithContext
  from neuraxle.data_container import DataContainer
  from neuraxle.metaopt.auto_ml import AutoML
  from neuraxle.metaopt.callbacks import ScoringCallback
  from neuraxle.metaopt.optimizer import GridExplorationSampler
  from neuraxle.metaopt.validation import ValidationSplitter
  from neuraxle.pipeline import Pipeline
  from sklearn.metrics import mean_squared_error
label_desc: Use image node_id 5 for calling the TestServiceAssertion obj's underlying member method code with example usage: obj.test_auto_ml_should_fail_at_init_when_services_are_missing(tmpdir) without return types