code: def mixed_segmentation(text):
      segs_out = []
      temp_str = ""
      for char in text:
          if re.search(r"[\u4e00-\u9fa5]", char) or char in PUNCT:
              if temp_str != "":
                  ss = whitespace_tokenize(temp_str)
                  segs_out.extend(ss)
                  temp_str = ""
              segs_out.append(char)
          else:
              temp_str += char
  
      if temp_str != "":
          ss = whitespace_tokenize(temp_str)
          segs_out.extend(ss)
  
      return segs_out
  
imports: import string
  import re
  import sys
  import unicodedata
  from collections import Counter
  from dataclasses import dataclass
  from jiant.tasks.lib.templates.squad_style import core
label_desc: Use image node_id 2 for calling a global function with example usage: mixed_segmentation(text) and returns: segs_out