code: def find_rocm_path():
      """Utility function to find ROCm path
  
      Returns
      -------
      path : str
          Path to ROCm root.
      """
      if "ROCM_PATH" in os.environ:
          return os.environ["ROCM_PATH"]
      cmd = ["which", "hipcc"]
      proc = subprocess.Popen(
          cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
      )
      (out, _) = proc.communicate()
      out = out.decode("utf-8").strip()
      if proc.returncode == 0:
          return os.path.realpath(os.path.join(out, "../.."))
      rocm_path = "/opt/rocm"
      if os.path.exists(os.path.join(rocm_path, "bin/hipcc")):
          return rocm_path
      raise RuntimeError("Cannot find ROCm path")
  
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 8 for calling a global function with example usage: find_rocm_path() and returns: os, os, rocm_path