code: def find_lld(required=True):
      """Find ld.lld in system.
  
      Parameters
      ----------
      required : bool
          Whether it is required,
          runtime error will be raised if the compiler is required.
  
      Returns
      -------
      valid_list : list of str
          List of possible paths.
  
      Note
      ----
      This function will first search ld.lld that
      matches the major llvm version that built with tvm
      """
      lld_list = []
      major = tvm.target.codegen.llvm_version_major(allow_none=True)
      if major is not None:
          lld_list += [f"ld.lld-{major}.0"]
          lld_list += [f"ld.lld-{major}"]
      lld_list += ["ld.lld"]
      valid_list = [utils.which(x) for x in lld_list]
      valid_list = [x for x in valid_list if x]
      if not valid_list and required:
          raise RuntimeError(
              "cannot find ld.lld, candidates are: " + str(lld_list)
          )
      return valid_list
  
file_path: tvm/python/tvm/contrib/rocm.py
imports: import re
  import subprocess
  import os
  from os.path import join, exists
  import tvm._ffi
  from tvm._ffi.base import py_str
  import tvm.runtime
  import tvm.target
  from .None import utils
label_desc: Use image node_id 1 for calling a global function with example usage: find_lld(required) and returns: valid_list