code: def _read_config_file(config_file):
      try:
          return tomli.loads(Path(config_file).read_text())["tool"][
              "run-clang-tidy"
          ]
      except KeyError:
          return {}
      except tomli.TOMLDecodeError as error:
          raise RuntimeError(
              f"Failed to read config file '{config_file}' due to syntax error: {error}"
          )
  
imports: import argparse
  import json
  import multiprocessing
  import os
  import re
  import shutil
  import subprocess
  import sys
  from pathlib import Path
  import tomli
label_desc: Use image node_id 1 for calling a global function with example usage: _read_config_file(config_file) and returns: tomli, dict