def METHOD_NAME(self):
    if not self.token or self.expires_at < datetime.datetime.utcnow():
        res = self.create_token()
        self.token = res["token"]
        self.expires_at = datetime.datetime.strptime(res["expires_at"], "%Y-%m-%dT%H:%M:%SZ")
    return self.token