keras/src/layers/preprocessing/string_lookup.py/StringLookup/_tensor_vocab_to_numpy
class StringLookup:    def _tensor_vocab_to_numpy(self, vocabulary):
        vocabulary = vocabulary.numpy()
        return np.array(
            [tf.compat.as_text(x, self.encoding) for x in vocabulary]
        )