code: def _get_current_host(self) -> str:
      if not self.path.resourceconfig.exists():
          return "local"
      else:
          with self.path.resourceconfig.open() as json_file:
              config = json.load(json_file)
              return config["current_host"]
  
imports: import json
  import shutil
  from pathlib import Path
  from typing import Dict, Optional, Tuple
  from gluonts.pydantic import BaseModel
  from .dyn import install_and_restart
  from .params import decode_sagemaker_parameters
  from .nested_params import decode_nested_parameters
label_desc: Use image node_id 6 for calling the TrainEnv obj's underlying member method code with example usage: obj._get_current_host() and returns: str, config