    def is_padded(self, namespace: str) -> bool:
        """
        Returns whether or not there are padding and OOV tokens added to the given namespace.
        """
        return self._index_to_token[namespace][0] == self._padding_token
Returns whether or not there are padding and OOV tokens added to the given namespace.
allennlp/data/vocabulary.py