keras/src/layers/preprocessing/index_lookup.py/IndexLookup/_tensor_vocab_to_numpy
class IndexLookup:    def _tensor_vocab_to_numpy(self, vocabulary):
        """Converts a tensor vocabulary to a numpy vocabulary."""
        return vocabulary.numpy()