code: def test_with_context_should_fail_at_init_when_services_are_missing(
      tmpdir,
  ):
      context = CX(root=tmpdir)
      p = Pipeline(
          [SomeStep().assert_has_services(SomeBaseService)]
      ).with_context(context=context)
  
      data_inputs = np.array([0, 1, 2, 3])
      with pytest.raises(AssertionError) as exception_info:
          p.transform(data_inputs=data_inputs)
  
      assert (
          "Expected context to have service of type SomeBaseService"
          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 4 for calling a global function with example usage: test_with_context_should_fail_at_init_when_services_are_missing(tmpdir) without return types