code: def test_ifexecphase_raise_exception_when_unspecified(tmpdir):
      context = CX(root=tmpdir)
      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)
  
      with pytest.raises(ValueError) as error_info:
          p.fit_transform(data_inputs)
      assert some_step.did_process is False
  
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 4 for calling a global function with example usage: test_ifexecphase_raise_exception_when_unspecified(tmpdir) without return types