code: def test_with_context_should_inject_dependencies_properly(tmpdir):
      data_inputs = np.array([0, 1, 2, 3])
      context = CX(root=tmpdir)
      service = SomeService()
      context.set_service_locator({SomeBaseService: service})
      p = Pipeline(
          [
              SomeStep().assert_has_services(SomeBaseService),
              SomeStep().assert_has_services_at_execution(
                  SomeBaseService
              ),
          ]
      ).with_context(context=context)
  
      p.transform(data_inputs=data_inputs)
  
      assert np.array_equal(service.data, data_inputs)
  
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 3 for calling a global function with example usage: test_with_context_should_inject_dependencies_properly(tmpdir) without return types