code: def testVerboseReporting(self):
      try:
          os.environ["_TEST_TUNE_TRIAL_UUID"] = "xxxxx"
  
          verbose_0_cmd = VERBOSE_CMD + "verbose=0)"
          output = run_string_as_driver(verbose_0_cmd)
          try:
              self.assertNotIn(VERBOSE_EXP_OUT_1, output)
              self.assertNotIn(VERBOSE_EXP_OUT_2, output)
              self.assertNotIn(VERBOSE_TRIAL_NORM_1, output)
              self.assertIsNone(
                  re.search(VERBOSE_TRIAL_NORM_2_PATTERN, output)
              )
              self.assertNotIn(VERBOSE_TRIAL_NORM_3, output)
              self.assertNotIn(VERBOSE_TRIAL_NORM_4, output)
              if os.environ.get("TUNE_NEW_EXECUTION") == "0":
                  self.assertNotIn(VERBOSE_TRIAL_DETAIL, output)
          except Exception:
              print("*** BEGIN OUTPUT ***")
              print(output)
              print("*** END OUTPUT ***")
              raise
  
          verbose_1_cmd = VERBOSE_CMD + "verbose=1)"
          output = run_string_as_driver(verbose_1_cmd)
          try:
              # New execution path is too fast, trials are already terminated
              if os.environ.get("TUNE_NEW_EXECUTION") == "0":
                  self.assertIn(VERBOSE_EXP_OUT_1, output)
              self.assertIn(VERBOSE_EXP_OUT_2, output)
              self.assertNotIn(VERBOSE_TRIAL_NORM_1, output)
              self.assertIsNone(
                  re.search(VERBOSE_TRIAL_NORM_2_PATTERN, output)
              )
              self.assertNotIn(VERBOSE_TRIAL_NORM_3, output)
              self.assertNotIn(VERBOSE_TRIAL_NORM_4, output)
              if os.environ.get("TUNE_NEW_EXECUTION") == "0":
                  self.assertNotIn(VERBOSE_TRIAL_DETAIL, output)
          except Exception:
              print("*** BEGIN OUTPUT ***")
              print(output)
              print("*** END OUTPUT ***")
              raise
  
          verbose_2_cmd = VERBOSE_CMD + "verbose=2)"
          output = run_string_as_driver(verbose_2_cmd)
          try:
              if os.environ.get("TUNE_NEW_EXECUTION") == "0":
                  self.assertIn(VERBOSE_EXP_OUT_1, output)
              self.assertIn(VERBOSE_EXP_OUT_2, output)
              self.assertIn(VERBOSE_TRIAL_NORM_1, output)
              self.assertIsNotNone(
                  re.search(VERBOSE_TRIAL_NORM_2_PATTERN, output)
              )
              self.assertIn(VERBOSE_TRIAL_NORM_3, output)
              self.assertIn(VERBOSE_TRIAL_NORM_4, output)
              self.assertNotIn(VERBOSE_TRIAL_DETAIL, output)
          except Exception:
              print("*** BEGIN OUTPUT ***")
              print(output)
              print("*** END OUTPUT ***")
              raise
  
          verbose_3_cmd = VERBOSE_CMD + "verbose=3)"
          output = run_string_as_driver(verbose_3_cmd)
          try:
              if os.environ.get("TUNE_NEW_EXECUTION") == "0":
                  self.assertIn(VERBOSE_EXP_OUT_1, output)
              self.assertIn(VERBOSE_EXP_OUT_2, output)
              self.assertNotIn(VERBOSE_TRIAL_NORM_1, output)
              self.assertIsNone(
                  re.search(VERBOSE_TRIAL_NORM_2_PATTERN, output)
              )
              self.assertNotIn(VERBOSE_TRIAL_NORM_3, output)
              self.assertNotIn(VERBOSE_TRIAL_NORM_4, output)
              if os.environ.get("TUNE_NEW_EXECUTION") == "0":
                  self.assertIn(VERBOSE_TRIAL_DETAIL, output)
              # Check that we don't print duplicate results at the end
              self.assertTrue(
                  output.count(VERBOSE_TRIAL_WITH_ONCE_RESULT) == 1
              )
              self.assertIn(VERBOSE_TRIAL_WITH_ONCE_COMPLETED, output)
          except Exception:
              print("*** BEGIN OUTPUT ***")
              print(output)
              print("*** END OUTPUT ***")
              raise
      finally:
          del os.environ["_TEST_TUNE_TRIAL_UUID"]
  
imports: import collections
  import os
  import regex
  import unittest
  from unittest.mock import MagicMock, Mock, patch
  import pytest
  import numpy
  from ray import train, tune
  from ray._private.test_utils import run_string_as_driver
  from ray.tune.progress_reporter import CLIReporter, JupyterNotebookReporter, ProgressReporter, _fair_filter_trials, _best_trial_str, _detect_reporter, _time_passed_str, _trial_progress_str, TuneReporterBase, _max_len
  from ray.tune.result import AUTO_RESULT_KEYS
  from ray.tune.experiment.trial import Trial
label_desc: Use image node_id 14 for calling the ProgressReporterTest obj's underlying member method code with example usage: obj.testVerboseReporting() without return types