code: def test_set_train_should_set_train_to_false():
      pipeline = Pipeline(
          [
              SomeStep(),
              SomeStep(),
              Pipeline(
                  [
                      SomeStep(),
                  ]
              ),
          ]
      )
  
      pipeline.set_train(False)
  
      assert not pipeline.is_train
      assert not pipeline[0].is_train
      assert not pipeline[1].is_train
      assert not pipeline[2].is_train
      assert not pipeline[2][0].is_train
  
imports: from neuraxle.pipeline import Pipeline
  from neuraxle.steps.flow import TrainOnlyWrapper
  from testing_neuraxle.mocks.step_mocks import SomeSplitStep, SomeStep, SomeTruncableStep
label_desc: Use image node_id 2 for calling a global function with example usage: test_set_train_should_set_train_to_false() without return types