nodes: 0, module; 1, function_definition; 2, function_name:rank; 3, parameters; 4, block; 5, identifier:self; 6, identifier:member; 7, expression_statement; 8, if_statement; 9, return_statement; 10, comment:""" Gets the ASC rank of @member from the sorted set, that is,
              lower scores have lower ranks
          """; 11, attribute; 12, block; 13, call; 14, identifier:self; 15, identifier:reversed; 16, return_statement; 17, attribute; 18, argument_list; 19, call; 20, attribute; 21, identifier:zrank; 22, attribute; 23, call; 24, attribute; 25, argument_list; 26, identifier:self; 27, identifier:_client; 28, identifier:self; 29, identifier:key_prefix; 30, attribute; 31, argument_list; 32, attribute; 33, identifier:zrevrank; 34, attribute; 35, call; 36, identifier:self; 37, identifier:_dumps; 38, identifier:member; 39, identifier:self; 40, identifier:_client; 41, identifier:self; 42, identifier:key_prefix; 43, attribute; 44, argument_list; 45, identifier:self; 46, identifier:_dumps; 47, identifier:member
code: def rank(self, member):
          """ Gets the ASC rank of @member from the sorted set, that is,
              lower scores have lower ranks
          """
          if self.reversed:
              return self._client.zrevrank(self.key_prefix, self._dumps(member))
          return self._client.zrank(self.key_prefix, self._dumps(member))