class_docstr: TOP-k Filter commands.
class_docstr_tok: ["TOP-k","Filter","commands","."]
docstr: Return full list of items in Top-K list of `key`.
  If `withcount` set to True, return full list of items
  with probabilistic count in Top-K list of `key`.
  For more information see `TOPK.LIST <https://redis.io/commands/topk.list>`_.
docstr_tok: ["Return","full","list","of","items","in","Top-K","list","of","`","key","`",".","If","`","withcount","`","set","to","True",",","return","full","list","of","items","with","probabilistic","count","in","Top-K","list","of","`","key","`",".","For","more","information","see","`","TOPK.LIST","<","https",":","\/\/redis.io\/commands\/topk.list",">","`","_","."]
code: def list(self, key, withcount=False):
      """
      Return full list of items in Top-K list of `key`.
      If `withcount` set to True, return full list of items
      with probabilistic count in Top-K list of `key`.
      For more information see `TOPK.LIST <https://redis.io/commands/topk.list>`_.
      """  # noqa
      params = [key]
      if withcount:
          params.append("WITHCOUNT")
      return self.execute_command(TOPK_LIST, *params)
  
imports: from redis.client import NEVER_DECODE
  from redis.exceptions import ModuleError
  from redis.utils import HIREDIS_AVAILABLE, deprecated_function
label_desc: Use image node_id 6 for calling the TOPKCommands obj's underlying member method code with example usage: obj.list(key, withcount) and returns: self