code: def _get_tokens_and_tags(parse_str):
      """Parse str to tokens and pos tags."""
      tokens = []
      parse_split = parse_str.split(" ")
      for p in parse_split:
          assert p.startswith("(") or p.endswith(")")
          if p.endswith(")"):
              token = p.replace(")", "")
              tokens.append(token)
  
      return tokens
  
file_path: tensor2tensor/tensor2tensor/data_generators/snli.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import zipfile
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import tokenizer
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling a global function with example usage: _get_tokens_and_tags(parse_str) and returns: tokens