code: def _run(tmpdir, phase, expected):
      context = CX(root=tmpdir, execution_phase=phase)
      data_inputs = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
  
      some_step = SomeStep()
      p = IfExecutionPhaseIsThen(ExecutionPhase.TRAIN, some_step)
      p = p.with_context(context)
  
      p.fit_transform(data_inputs)
      assert some_step.did_process is expected
  
file_path: Neuraxle/testing_neuraxle/steps/test_if_execution_phase_is_then_do.py
imports: import numpy
  import pytest
  from pytest import skip
  from neuraxle.base import CX, ExecutionPhase
  from neuraxle.data_container import DataContainer
  from neuraxle.steps.flow import IfExecutionPhaseIsThen, ExecutionPhaseSwitch
  from testing_neuraxle.test_forcehandle_mixin import ForceHandleIdentity
label_desc: Use image node_id 3 for calling a global function with example usage: _run(tmpdir, phase, expected) without return types