code: def test_perturb_with_invalid_dim(self, space, monkeypatch):
      explore = PerturbExplore()
  
      monkeypatch.setattr(Dimension, "type", "type_that_dont_exist")
  
      with pytest.raises(
          ValueError,
          match="Unsupported dimension type type_that_dont_exist",
      ):
          explore(RNGStub(), space, {"x": 1.0, "y": 2, "z": 0, "f": 10})
  
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 14 for calling the TestPerturb obj's underlying member method code with example usage: obj.test_perturb_with_invalid_dim(space, monkeypatch) without return types