code: def __init__(
      self,
      location: str,
      default_namespace: str,
      domain: str,
      base_path: Optional[str],
  ):
      assert location in ("external", "k8s", "gce")
      self._location = location
      self._default_namespace = default_namespace
      self._domain = domain
      self._base_path = base_path
  
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 4 to create a new DeployConfig object  with example: obj = DeployConfig(location, default_namespace, domain, base_path)