code: def _check_compiler_version(name):
      """Check if the installed version of the given compiler is greater than
      or equal to the required minimum version.
      """
      if AvailableCompilers.compiler_checked[name]:
          return  # Used the cached value!
  
      if name == "catalyst":
          installed_catalyst_version = metadata.version(
              "pennylane-catalyst"
          )
          if (
              Version(
                  re.sub(r"\.dev\d+", "", installed_catalyst_version)
              )
              < PL_CATALYST_MIN_VERSION
          ):
              raise CompileError(
                  f"PennyLane-Catalyst {PL_CATALYST_MIN_VERSION} or greater is required, but installed {installed_catalyst_version}"
              )
  
      # else
      AvailableCompilers.compiler_checked[name] = True
  
file_path: pennylane/pennylane/compiler/compiler.py
imports: from typing import List, Optional
  from sys import version_info
  from importlib import reload, metadata
  from collections import defaultdict
  import dataclasses
  import re
  from semantic_version import Version
label_desc: Use image node_id 1 for calling a global function with example usage: _check_compiler_version(name) without return types