class_docstr: Filters out languages if necessary and yields each (token, lang) pair.
code: def process(self, element):
      lang = element["lang"]
  
      if lang in self._lang_set or self._include_other_languages:
          returned_lang = lang if lang in self._lang_set else "other"
  
          for token in element["tokens"]:
              yield token, returned_lang
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import apache_beam
  import tensorflow.compat.v1
  from tensorflow_text.python.ops.bert_tokenizer import BertTokenizer
  from tensorflow_text.python.ops.wordpiece_tokenizer import WordpieceTokenizer
  from tensorflow_text.tools.wordpiece_vocab import wordpiece_tokenizer_learner_lib
label_desc: Use image node_id 2 for calling the FilterTokensByLang obj's underlying member method code with example usage: obj.process(element) without return types