code: def run_files(filenames, config):
      for filename in filenames:
          with codecs.open(
              filename, encoding=config["encoding"]
          ) as fd_in:
              if config["dry-run"]:
                  print("Filename: %s" % filename)
                  fd_out = sys.stdout
              else:
                  fd_out = tempfile.NamedTemporaryFile(
                      mode="wb", delete=False
                  )
                  fd_out.close()
                  fd_out = codecs.open(
                      fd_out.name, "wb", encoding=config["encoding"]
                  )
  
              run(fd_in, fd_out, config)
  
              if not config["dry-run"]:
                  fd_out.close()
                  shutil.copy(fd_out.name, filename)
                  os.remove(fd_out.name)
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/scenarios/code_scenario_helper.py
imports: import codecs
  import getopt
  import os
  import shutil
  import sys
  import tempfile
label_desc: Use image node_id 5 for calling a global function with example usage: run_files(filenames, config) without return types