code: def _dlvm_config(job_mode: JobMode) -> Dict[str, str]:
      """Generates a dict of custom DLVM image identifier -> the actual image ID
      available from GCR.
  
      """
      mode = job_mode.lower()
  
      def with_version(
          s: str, version: Optional[str], sep: str
      ) -> Tuple[str, str]:
          return f"{s}{sep}{version}" if version else s
  
      def image(lib: str, version: Optional[str]) -> str:
          base = f"gcr.io/deeplearning-platform-release/{lib}-{mode}"
          k = with_version(f"dlvm:{lib}-{mode}", version, "-")
          v = with_version(
              base, version.replace(".", "-") if version else None, "."
          )
          return (k, v)
  
      return dict(
          [
              image(lib, v)
              for lib, versions in DLVMS.items()
              for v in versions
          ]
      )
  
imports: import os
  import sys
  from enum import Enum
  from typing import Any, Dict, List, Optional, Tuple
  import schema
  import caliban.platform.cloud.types
  import caliban.util.schema
label_desc: Use image node_id 1 for calling a global function with example usage: _dlvm_config(job_mode) and returns: dict, unknown, k,  v