parameters: ()
return_statement: return None
docstring: Adds headers based on client context.
docstring_summary: Adds headers based on client context.
docstring_tokens: Adds headers based on client context .
function: def _make_request_headers():
    """Adds headers based on client context."""
    headers = {}
    client_version_header_values = []
    if _cloud_api_client_version is not None:
      client_version_header_values.append('ee-py/' + _cloud_api_client_version)
    client_version_header_values.append('python/' + platform.python_version())
    headers[_API_CLIENT_VERSION_HEADER] = ' '.join(client_version_header_values)
    if _thread_locals.profile_hook:
      headers[_PROFILE_REQUEST_HEADER] = '1'
    if _cloud_api_user_project is not None:
      headers[_USER_PROJECT_OVERRIDE_HEADER] = _cloud_api_user_project
    if headers:
      return headers
    return None
function_tokens: def _make_request_headers ( ) : headers = { } client_version_header_values = [ ] if _cloud_api_client_version is not None : client_version_header_values . append ( 'ee-py/' + _cloud_api_client_version ) client_version_header_values . append ( 'python/' + platform . python_version ( ) ) headers [ _API_CLIENT_VERSION_HEADER ] = ' ' . join ( client_version_header_values ) if _thread_locals . profile_hook : headers [ _PROFILE_REQUEST_HEADER ] = '1' if _cloud_api_user_project is not None : headers [ _USER_PROJECT_OVERRIDE_HEADER ] = _cloud_api_user_project if headers : return headers return None