nodes: 0, module; 1, function_definition; 2, function_name:zrank; 3, parameters; 4, block; 5, identifier:self; 6, identifier:name; 7, identifier:value; 8, expression_statement; 9, with_statement; 10, comment:"""
          Returns the rank of the element.
  
          :param name: str     the name of the redis key
          :param value: the element in the sorted set
          """; 11, with_clause; 12, block; 13, with_item; 14, expression_statement; 15, return_statement; 16, as_pattern; 17, assignment; 18, call; 19, attribute; 20, as_pattern_target; 21, identifier:value; 22, call; 23, attribute; 24, argument_list; 25, identifier:self; 26, identifier:pipe; 27, identifier:pipe; 28, attribute; 29, argument_list; 30, identifier:pipe; 31, identifier:zrank; 32, call; 33, identifier:value; 34, attribute; 35, identifier:encode; 36, identifier:value; 37, attribute; 38, argument_list; 39, identifier:self; 40, identifier:valueparse; 41, identifier:self; 42, identifier:redis_key; 43, identifier:name
code: def zrank(self, name, value):
          """
          Returns the rank of the element.
  
          :param name: str     the name of the redis key
          :param value: the element in the sorted set
          """
          with self.pipe as pipe:
              value = self.valueparse.encode(value)
              return pipe.zrank(self.redis_key(name), value)