def METHOD_NAME(self) -> dict:
    for user in test_users.values():
        if user['username'] == self.user or user['email'] == self.user:
            return dict(Authorization=f'Bearer {user["user_id"]}')
    return {}