code: def ensure_all_tokens_exist(
      input_tokens, output_tokens, include_joiner_token, joiner
  ):
      """Adds all tokens in input_tokens to output_tokens if not already present.
  
      Args:
        input_tokens: set of strings (tokens) we want to include
        output_tokens: string to int dictionary mapping token to count
        include_joiner_token: bool whether to include joiner token
        joiner: string used to indicate suffixes
  
      Returns:
        string to int dictionary with all tokens in input_tokens included
      """
  
      for token in input_tokens:
          if token not in output_tokens:
              output_tokens[token] = 1
  
          if include_joiner_token:
              joined_token = joiner + token
              if joined_token not in output_tokens:
                  output_tokens[joined_token] = 1
  
      return output_tokens
  
file_path: text/tensorflow_text/tools/wordpiece_vocab/wordpiece_tokenizer_learner_lib.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from typing import List, Optional
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: ensure_all_tokens_exist(input_tokens, output_tokens, include_joiner_token, joiner) and returns: output_tokens