code: def scheme(self, base_scheme="http"):
      # FIXME: should depend on ssl context
      return (
          (base_scheme + "s")
          if self._location in ("external", "k8s")
          else base_scheme
      )
  
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 9 for calling the DeployConfig obj's underlying member method code with example usage: obj.scheme(base_scheme) and returns: unknown