code: def gen_trace_file(root_dir: str, out_path: str) -> None:
      subprocess.check_output(
          [
              "lcov",
              "-c",
              "-d",
              root_dir,
              "--no-external",
              "--path",
              root_dir,
              "-o",
              out_path,
          ]
      )
  
      subprocess.check_output(
          [
              "lcov",
              "-r",
              out_path,
              os.path.join(root_dir, "third_party", "*"),
              "-o",
              out_path,
          ]
      )
  
      subprocess.check_output(
          [
              "lcov",
              "-r",
              out_path,
              os.path.join(root_dir, ".setuptools-cmake-build", "*"),
              "-o",
              out_path,
          ]
      )
  
imports: import argparse
  import os
  import subprocess
label_desc: Use image node_id 2 for calling a global function with example usage: gen_trace_file(root_dir, out_path) without return types