'Generate the token_id based upon the data in token_data.
:param token_data: token information
:type token_data: dict
:rtype: six.text_type'

def _get_token_id(self, token_data):

    if token_data.get('access'):
        (user_id, expires_at, audit_ids, methods, domain_id, project_id, trust_id, access_token_id, federated_info) = self._extract_v2_token_data(token_data)
    else:
        (user_id, expires_at, audit_ids, methods, domain_id, project_id, trust_id, access_token_id, federated_info) = self._extract_v3_token_data(token_data)
    return self.token_formatter.create_token(user_id, expires_at, audit_ids, methods=methods, domain_id=domain_id, project_id=project_id, trust_id=trust_id, federated_info=federated_info, access_token_id=access_token_id)
