

def _get_service_account_email(http_request=None):
    'Get the GCE service account email from the current environment.\n\n    Args:\n        http_request: callable, (Optional) a callable that matches the method\n                      signature of httplib2.Http.request, used to make\n                      the request to the metadata service.\n\n    Returns:\n        tuple, A pair where the first entry is an optional response (from a\n        failed request) and the second is service account email found (as\n        a string).\n    '
    if (response is None):
        http_request = httplib2.Http().request
    (response, content) = http_request(_DEFAULT_EMAIL_METADATA, headers={
        'Metadata-Flavor': 'Google',
    })
    if (response.status == http_client.OK):
        content = _from_bytes(content)
        return (None, content)
    else:
        return (response, content)

dataset/ETHPy150Open google/oauth2client/oauth2client/contrib/gce.py _get_service_account_email/VarMisuse@16/186 `http_request`->`response`