def _get_dev2_hostname(backend, instance=None):
  try:
    return modules.get_hostname(module=backend, instance=instance)
  except modules.InvalidModuleError:
    raise InvalidBackendError()
  except modules.InvalidInstancesError:
    raise InvalidInstanceError()
Returns the hostname of a backend [instance] in devappserver2.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/backends/backends.py/_get_dev2_hostname