code: def get_deploy_config() -> DeployConfig:
      global deploy_config
  
      if not deploy_config:
          deploy_config = DeployConfig.from_config_file()
      return deploy_config
  
imports: from typing import Dict, Optional, TypeVar, Union
  import os
  import json
  import logging
  from ..utils import first_extant_file
  from .user_config import get_user_config
label_desc: Use image node_id 2 for calling a global function with example usage: get_deploy_config() and returns: deploy_config