    def convert_ids_to_tokens(self, ids, skip_special_tokens=False):
        """
        Converts a token id or a sequence of token ids (integer) to a token or
        a sequence of tokens (str) by using the `vocab` attribute (an instance
        of `Vocab`).

        Args:
            ids (int` or `list[int]): A token id or a sequence of token ids.
            skip_special_tokens (bool, optional): Whether to skip and not
                decode special tokens when converting. Defaults to `False`.

        Returns:
            str: Converted token or token sequence.
        """
        tokens = self.vocab.to_tokens(ids)
        if skip_special_tokens and isinstance(tokens, list):
            tokens = [
                token for token in tokens
                if token not in self.all_special_tokens
            ]
        return tokens
Converts a token id or a sequence of token ids (integer) to a token or
a sequence of tokens (str) by using the `vocab` attribute (an instance
of `Vocab`).

Args:
ids (int` or `list[int]): A token id or a sequence of token ids.
skip_special_tokens (bool, optional): Whether to skip and not
decode special tokens when converting. Defaults to `False`.

Returns:
str: Converted token or token sequence.
ptstructure/vqa/pytorchnlp/transformers/tokenizer_utils.py