code: def installed_rocm_version():
      if OpBuilder._rocm_version:
          return OpBuilder._rocm_version
  
      ROCM_MAJOR = "0"
      ROCM_MINOR = "0"
      if OpBuilder.is_rocm_pytorch():
          from torch.utils.cpp_extension import ROCM_HOME
  
          rocm_ver_file = Path(ROCM_HOME).joinpath(".info/version-dev")
          if rocm_ver_file.is_file():
              with open(rocm_ver_file, "r") as file:
                  ROCM_VERSION_DEV_RAW = file.read()
          elif "rocm" in torch.__version__:
              ROCM_VERSION_DEV_RAW = torch.__version__.split("rocm")[1]
          else:
              assert False, "Could not detect ROCm version"
          assert (
              ROCM_VERSION_DEV_RAW != ""
          ), "Could not detect ROCm version"
          ROCM_MAJOR = ROCM_VERSION_DEV_RAW.split(".")[0]
          ROCM_MINOR = ROCM_VERSION_DEV_RAW.split(".")[1]
      OpBuilder._rocm_version = (int(ROCM_MAJOR), int(ROCM_MINOR))
      return OpBuilder._rocm_version
  
imports: import os
  import sys
  import time
  import importlib
  from pathlib import Path
  import subprocess
  import shlex
  import shutil
  import tempfile
  import distutils.ccompiler
  import distutils.log
  import distutils.sysconfig
  from distutils.errors import CompileError, LinkError
  from abc import ABC, abstractmethod
  from typing import List
label_desc: Use image node_id 7 for calling the OpBuilder obj's underlying member method code with example usage: obj.installed_rocm_version() and returns: OpBuilder, OpBuilder