code: def test_perturb_int_factor(self, factor):
      explore = PerturbExplore(factor=factor)
  
      rng = RNGStub()
      rng.random = lambda: 1.0
  
      assert explore.perturb_int(rng, 5, (0, 10)) == int(
          numpy.round(5 * factor)
      )
  
      rng.random = lambda: 0.0
  
      assert explore.perturb_int(rng, 5, (0, 10)) == int(
          numpy.round(5 / factor)
      )
  
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 6 for calling the TestPerturb obj's underlying member method code with example usage: obj.test_perturb_int_factor(factor) without return types