code: def run_clang_tidy(cmd, args):
      command, is_cuda = get_tidy_args(cmd, args.exe)
      tidy_cmd = [
          args.exe,
          "-header-filter='.*cuml/cpp/(src|include|bench|comms).*'",
          cmd["file"],
          "--",
      ]
      tidy_cmd.extend(command)
      all_passed = True
      out = []
      if is_cuda:
          tidy_cmd.append("--cuda-device-only")
          tidy_cmd.append(cmd["file"])
          passed, out1 = run_clang_tidy_command(tidy_cmd)
          out.append(out1)
          out.append(SEPARATOR)
          if not passed:
              all_passed = False
          tidy_cmd[-2] = "--cuda-host-only"
          passed, out1 = run_clang_tidy_command(tidy_cmd)
          if not passed:
              all_passed = False
          out.append(out1)
      else:
          tidy_cmd.append(cmd["file"])
          passed, out1 = run_clang_tidy_command(tidy_cmd)
          if not passed:
              all_passed = False
          out.append(out1)
          out += out1
      return all_passed, "".join(out), cmd["file"]
  
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 11 for calling a global function with example usage: run_clang_tidy(cmd, args) and returns: all_passed,  str,  cmd