class_docstr: clang tidy wrapper.
  Args:
    args:  Command line arguments.
        cpp_lint: Run linter on C++ source code.
        cuda_lint: Run linter on CUDA source code.
        use_dmlc_gtest: Whether to use gtest bundled in dmlc-core.
code: def _configure_flags(self, path, command):
      src = os.path.join(self.root_path, "src")
      src = src.replace("/", "\\/")
      include = os.path.join(self.root_path, "include")
      include = include.replace("/", "\\/")
  
      header_filter = "(" + src + "|" + include + ")"
      common_args = [
          self.exe,
          "-header-filter=" + header_filter,
          "-config=" + self.clang_tidy,
      ]
      common_args.append(path)
      common_args.append("--")
      command = self.convert_nvcc_command_to_clang(command)
  
      command = command.split()[1:]  # remove clang/c++/g++
      if "-c" in command:
          index = command.index("-c")
          del command[index + 1]
          command.remove("-c")
      if "-o" in command:
          index = command.index("-o")
          del command[index + 1]
          command.remove("-o")
  
      common_args.extend(command)
  
      # Two passes, one for device code another for host code.
      if path.endswith("cu"):
          args = [common_args.copy(), common_args.copy()]
          args[0].append("--cuda-host-only")
          args[1].append("--cuda-device-only")
      else:
          args = [common_args.copy()]
      for a in args:
          a.append("-Wno-unused-command-line-argument")
      return args
  
imports: import argparse
  import json
  import os
  import re
  import shutil
  import subprocess
  import sys
  from multiprocessing import Pool, cpu_count
  from time import time
  import yaml
label_desc: Use image node_id 6 for calling the ClangTidy obj's underlying member method code with example usage: obj._configure_flags(path, command) and returns: args