code: def test_push_2():
      """[Parallel | Layer] Test double push"""
  
      layer.push(g2)
      assert not layer.__fitted__
  
      with open(os.devnull, "w") as f, redirect_stdout(f):
          a = run(layer, "fit", X, y, refit=False, return_preds=True)
  
      assert layer.__fitted__
  
      with open(os.devnull, "w") as f, redirect_stdout(f):
          b = run(layer, "fit", X, y, refit=False, return_preds=True)
  
      with open(os.devnull, "w") as f, redirect_stdout(f):
          c = run(layer, "transform", X, return_preds=True)
  
      with open(os.devnull, "w") as f, redirect_stdout(f):
          d = run(layer, "fit", X, y, refit=True, return_preds=True)
  
      np.testing.assert_array_equal(a, b)
      np.testing.assert_array_equal(a, c)
      np.testing.assert_array_equal(a, d)
  
file_path: mlens/mlens/parallel/tests/test_b4_layer_push_pop.py
imports: import os
  import numpy
  from mlens.index import INDEXERS
  from mlens.testing.dummy import Data, ECM
  from mlens.utils.dummy import Scale, LogisticRegression
  from mlens.parallel import make_group, Layer, run
  from mlens.externals.sklearn.base import clone
label_desc: Use image node_id 3 for calling a global function with example usage: test_push_2() without return types