code: def word_segmentation(string):
      new_string = ""
      for char in list(string):
          if char.encode("UTF-8").isalpha():
              new_string += char
          elif char in string_lib.punctuation:
              new_string += " "
          elif char in ["·", "，"]:
              new_string += " "
          else:
              new_string += " " + char + " "
      result = " ".join(new_string.strip().split())
      return result
  
imports: import json
  import os
  import string
  import sys
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: word_segmentation(string) and returns: result