code: def test_explore_otherwise_next(self):
      for i in range(4):
          explore = PipelineExplore(
              [
                  dict(
                      of_type="explorestub",
                      rval=None if j < i else i,
                      some="args",
                  )
                  for j in range(4)
              ]
          )
          assert explore(RNGStub(), TrialStub(), None) == i
  
imports: import numpy
  import pytest
  from base import RNGStub, TrialStub
  from orion.algo.pbt.explore import PerturbExplore, PipelineExplore, ResampleExplore
  from orion.algo.space import Categorical, Dimension
  from orion.core.utils.flatten import flatten
label_desc: Use image node_id 2 for calling the TestPipelineExplore obj's underlying member method code with example usage: obj.test_explore_otherwise_next() without return types