def _get_rank(self, team):
rank = None<EOL>rank_field = team('<STR_LIT>')<EOL>if len(rank_field) > <NUM_LIT:0>:<EOL><INDENT>rank = re.findall(r'<STR_LIT>', str(rank_field))[<NUM_LIT:0>]<EOL>rank = int(rank.replace('<STR_LIT:(>', '<STR_LIT>').replace('<STR_LIT:)>', '<STR_LIT>'))<EOL><DEDENT>return rank<EOL>
Find the team's rank when applicable.

If a team is ranked, it will showup in a separate <span> tag with the
actual rank embedded between parentheses. When a team is ranked, the
integer value representing their ranking should be returned. For teams
that are not ranked, None should be returned.

Parameters
----------
team : PyQuery object
    A PyQuery object of a team's HTML tag in the boxscore.

Returns
-------
int
    Returns an integer representing the team's ranking when applicable,
    or None if the team is not ranked.