docstr: Decodes a list of tokens into a string.
  
  WARNING: the default behaviour of this function is lossy, since decoded bytes are not
  guaranteed to be valid UTF-8. You can control this behaviour using the `errors` parameter,
  for instance, setting `errors=strict`.
  
  ```
  >>> enc.decode([31373, 995])
  'hello world'
  ```
docstr_tok: ["Decodes","a","list","of","tokens","into","a","string",".","WARNING",":","the","default","behaviour","of","this","function","is","lossy",",","since","decoded","bytes","are","not","guaranteed","to","be","valid","UTF-8",".","You","can","control","this","behaviour","using","the","`","errors","`","parameter",",","for","instance",",","setting","`","errors=strict","`",".","``","`",">",">",">","enc.decode","(","[","31373",",","995","]",")","'hello","world'","``","`"]
code: def decode(self, tokens: list[int], errors: str = "replace") -> str:
      """Decodes a list of tokens into a string.
  
      WARNING: the default behaviour of this function is lossy, since decoded bytes are not
      guaranteed to be valid UTF-8. You can control this behaviour using the `errors` parameter,
      for instance, setting `errors=strict`.
  
      ```
      >>> enc.decode([31373, 995])
      'hello world'
      ```
      """
      return self._core_bpe.decode_bytes(tokens).decode(
          "utf-8", errors=errors
      )
  
imports: from __future__ import annotations
  import functools
  from concurrent.futures import ThreadPoolExecutor
  from typing import AbstractSet, Collection, Literal, NoReturn, Optional, Union
  import regex
  from tiktoken import _tiktoken
label_desc: Use image node_id 10 for calling the Encoding obj's underlying member method code with example usage: obj.decode(tokens, errors) and returns: self