code: def iter_tests(self):
      if self.forever:
          while True:
              yield from self.tests
      else:
          yield from self.tests
  
imports: import contextlib
  import dataclasses
  import json
  import os
  import subprocess
  from typing import Any
  from test import support
  from .utils import StrPath, StrJSON, TestTuple, TestFilter, FilterTuple, FilterDict
label_desc: Use image node_id 5 for calling the RunTests obj's underlying member method code with example usage: obj.iter_tests() without return types