code: def test_baseline_performance(self):
      for _ in range(20):
          ev = RolloutWorker(
              env_creator=lambda _: gym.make("CartPole-v1"),
              default_policy_class=MockPolicy,
              config=AlgorithmConfig().rollouts(
                  rollout_fragment_length=100,
                  num_rollout_workers=0,
              ),
          )
          start = time.time()
          count = 0
          while time.time() - start < 1:
              count += ev.sample().count
          print()
          print(
              "Samples per second {}".format(
                  count / (time.time() - start)
              )
          )
          print()
  
file_path: ray/python/ray/rllib/tests/test_perf.py
imports: import gymnasium
  import time
  import unittest
  import ray
  from ray.rllib.algorithms.algorithm_config import AlgorithmConfig
  from ray.rllib.evaluation.rollout_worker import RolloutWorker
  from ray.rllib.evaluation.tests.test_rollout_worker import MockPolicy
label_desc: Use image node_id 3 for calling the TestPerf obj's underlying member method code with example usage: obj.test_baseline_performance() without return types