class_docstr: A Policy that leaks very little memory.
  
  Useful for proving that our memory-leak tests can catch the
  slightest leaks.
class_docstr_tok: ["A","Policy","that","leaks","very","little","memory",".","Useful","for","proving","that","our","memory-leak","tests","can","catch","the","slightest","leaks","."]
code: def compute_log_likelihoods(self, *args, **kwargs):
      # Leak.
      if self._leakage_size == "small":
          self._leak.append("test")
      else:
          self._leak.append(["test"] * 100)
      return super().compute_log_likelihoods(*args, **kwargs)
  
file_path: ray/rllib/examples/policy/memory_leaking_policy.py
imports: import gymnasium
  from ray.rllib.examples.policy.random_policy import RandomPolicy
  from ray.rllib.utils.annotations import override
  from ray.rllib.utils.typing import AlgorithmConfigDict
label_desc: Use image node_id 5 for calling the MemoryLeakingPolicy obj's underlying member method code with example usage: obj.compute_log_likelihoods() and returns: super