code: def _get_japanese_tokenizer():
      global japanese_tokenizer
      if "tinysegmenter" not in sys.modules:
          tinysegmenter = __import__("tinysegmenter")
          try:
              japanese_tokenizer = (
                  tinysegmenter.TinySegmenter().tokenize
              )
          except:
              japanese_tokenizer = tinysegmenter.tinysegmenter.tokenize
      else:
          import tinysegmenter
  
          try:
              japanese_tokenizer = (
                  tinysegmenter.TinySegmenter().tokenize
              )
          except:
              japanese_tokenizer = tinysegmenter.tinysegmenter.tokenize
      return japanese_tokenizer
  
imports: import re
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: _get_japanese_tokenizer() and returns: japanese_tokenizer