code: def test_transform(
      runhistory, make_scenario, configspace_small, configs
  ):
      """Test if all encoders are working."""
      scenario = make_scenario(configspace_small)
  
      runhistory.add(
          config=configs[0],
          cost=1,
          time=1,
          status=StatusType.SUCCESS,
      )
  
      runhistory.add(
          config=configs[1],
          cost=5,
          time=4,
          status=StatusType.SUCCESS,
      )
  
      # Normal encoder
      encoder = RunHistoryEncoder(
          scenario=scenario, considered_states=[StatusType.SUCCESS]
      )
      encoder.runhistory = runhistory
      X1, Y1 = encoder.transform()
  
      assert Y1.tolist() == [[1.0], [5.0]]
      assert ((X1 <= 1.0) & (X1 >= 0.0)).all()
  
      # Log encoder
      encoder = RunHistoryLogEncoder(
          scenario=scenario, considered_states=[StatusType.SUCCESS]
      )
      encoder.runhistory = runhistory
      X, Y = encoder.transform()
      assert Y.tolist() != Y1.tolist()
      assert ((X <= 1.0) & (X >= 0.0)).all()
  
      encoder = RunHistoryLogScaledEncoder(
          scenario=scenario, considered_states=[StatusType.SUCCESS]
      )
      encoder.runhistory = runhistory
      X, Y = encoder.transform()
      assert Y.tolist() != Y1.tolist()
      assert ((X <= 1.0) & (X >= 0.0)).all()
  
      encoder = RunHistoryScaledEncoder(
          scenario=scenario, considered_states=[StatusType.SUCCESS]
      )
      encoder.runhistory = runhistory
      X, Y = encoder.transform()
      assert Y.tolist() != Y1.tolist()
      assert ((X <= 1.0) & (X >= 0.0)).all()
  
      encoder = RunHistoryInverseScaledEncoder(
          scenario=scenario, considered_states=[StatusType.SUCCESS]
      )
      encoder.runhistory = runhistory
      X, Y = encoder.transform()
      assert Y.tolist() != Y1.tolist()
      assert ((X <= 1.0) & (X >= 0.0)).all()
  
      encoder = RunHistorySqrtScaledEncoder(
          scenario=scenario, considered_states=[StatusType.SUCCESS]
      )
      encoder.runhistory = runhistory
      X, Y = encoder.transform()
      assert Y.tolist() != Y1.tolist()
      assert ((X <= 1.0) & (X >= 0.0)).all()
  
      encoder = RunHistoryEIPSEncoder(
          scenario=scenario, considered_states=[StatusType.SUCCESS]
      )
      encoder.runhistory = runhistory
      X, Y = encoder.transform()
      assert Y.tolist() != Y1.tolist()
      assert ((X <= 1.0) & (X >= 0.0)).all()
  
file_path: SMAC3/tests/test_runhistory/test_runhistory_encoder.py
imports: import numpy
  import pytest
  from smac.multi_objective.aggregation_strategy import MeanAggregationStrategy
  from smac.runhistory.encoder import RunHistoryEIPSEncoder, RunHistoryInverseScaledEncoder, RunHistoryLogEncoder, RunHistoryLogScaledEncoder, RunHistoryScaledEncoder, RunHistorySqrtScaledEncoder
  from smac.runhistory.encoder.encoder import RunHistoryEncoder
  from smac.runner.abstract_runner import StatusType
label_desc: Use image node_id 2 for calling a global function with example usage: test_transform(runhistory, make_scenario, configspace_small, configs) without return types