code: def get_test_runner_class(verbosity, buffer=False):
      if verbosity:
          return functools.partial(
              unittest.TextTestRunner,
              resultclass=RegressionTestResult,
              buffer=buffer,
              verbosity=verbosity,
          )
      return functools.partial(QuietRegressionTestRunner, buffer=buffer)
  
imports: import functools
  import io
  import sys
  import time
  import traceback
  import unittest
  from test import support
label_desc: Use image node_id 1 for calling a global function with example usage: get_test_runner_class(verbosity, buffer) and returns: functools, functools