def _get_token_rate_limit(self, token):
rate_url = urijoin(self.base_url, "<STR_LIT>")<EOL>self.session.headers.update({'<STR_LIT>': '<STR_LIT>' + token})<EOL>remaining = <NUM_LIT:0><EOL>try:<EOL><INDENT>headers = super().fetch(rate_url).headers<EOL>if self.rate_limit_header in headers:<EOL><INDENT>remaining = int(headers[self.rate_limit_header])<EOL><DEDENT><DEDENT>except requests.exceptions.HTTPError as error:<EOL><INDENT>logger.warning("<STR_LIT>", error)<EOL><DEDENT>return remaining<EOL>
Return token's remaining API points