code: def tokenize(text):
      # Combined pattern
      pattern = r"([^\w\s\d\'])|([\w\']+)|(\d+)|(\n+)|( +)"
      result = re.findall(pattern, text)
      # Flatten the result and filter out empty strings
      flattened_result = [
          item for sublist in result for item in sublist if item
      ]
      return flattened_result
  
imports: import math
  from rapidfuzz import fuzz, distance
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: tokenize(text) and returns: flattened_result