code: def run(fd_in, fd_out, config):
      while True:
          line = fd_in.readline()
          if not line:
              break
          line = line.rstrip("\r\n")
  
          # Find indentation style used in file if not set
          if config["from"] < 0:
              indent = find_indentation(line, config)
              if not indent:
                  print(line, file=fd_out)
                  continue
              indent, newindent = indent
  
          # Find current indentation level
          level = 0
          while True:
              whitespace = line[: len(indent) * (level + 1)]
              if whitespace == indent * (level + 1):
                  level += 1
              else:
                  break
  
          content = line[len(indent) * level :]
          if config["all-tabs"]:
              content = replace_inline_tabs(content, config)
  
          line = (newindent * level) + content
          print(line, file=fd_out)
  
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 4 for calling a global function with example usage: run(fd_in, fd_out, config) without return types