code: def verify_reproducibility(
      source_suite: Optional[str],
      target_suite: Optional[str],
      conf_path: str,
      max_eval_instances: int,
      priority: int,
      models: Optional[List[str]],
  ):
      output_path1: str = (
          OUTPUT_PATH_TEMPLATE.format(suite=source_suite)
          if source_suite
          else do_dry_run(
              DRYRUN_SUITE1,
              conf_path,
              max_eval_instances,
              priority,
              models,
          )
      )
      output_path2: str = (
          OUTPUT_PATH_TEMPLATE.format(suite=target_suite)
          if target_suite
          else do_dry_run(
              DRYRUN_SUITE2,
              conf_path,
              max_eval_instances,
              priority,
              models,
          )
      )
  
      hlog(f"Comparing results in {output_path1} vs. {output_path2}")
      for run_dir in os.listdir(output_path1):
          run_path1: str = os.path.join(output_path1, run_dir)
  
          if not os.path.isdir(run_path1):
              continue
  
          scenario_state_path1: str = os.path.join(
              run_path1, "scenario_state.json"
          )
          if not os.path.isfile(scenario_state_path1):
              continue
  
          run_path2: str = os.path.join(output_path2, run_dir)
          scenario_state_path2: str = os.path.join(
              run_path2, "scenario_state.json"
          )
  
          with htrack_block(
              f"Comparing `ScenarioState`s for {run_dir}"
          ):
              with open(scenario_state_path1) as f:
                  scenario_state1 = f.readlines()
  
              with open(scenario_state_path2) as f:
                  scenario_state2 = f.readlines()
  
              same: bool = True
              # Check the difference between two scenario_state.json files
              for i, (line1, line2) in enumerate(
                  zip(scenario_state1, scenario_state2)
              ):
                  if line1 != line2:
                      line_number: int = i + 1
                      same = False
                      hlog(
                          "ERROR: Not reproducible - content of "
                          f"{scenario_state_path1} and {scenario_state_path2} are different. "
                          f"Line {line_number}:"
                      )
                      hlog(f"--- scenario_state.json (1): {line1}")
                      hlog(f"+++ scenario_state.json (2): {line2}")
                      break
  
              if same:
                  hlog("Verified reproducible.")
  
file_path: H2O/h2o_hf/helm/scripts/verify_reproducibility.py
imports: import argparse
  import os
  import shutil
  import subprocess
  from typing import List, Optional
  from helm.common.hierarchical_logger import hlog, htrack, htrack_block
label_desc: Use image node_id 2 for calling a global function with example usage: verify_reproducibility(source_suite, target_suite, conf_path, max_eval_instances, priority, models) without return types