code: def word_tokenize(sent):
      """Split sentence into word list using regex.
      Args:
          sent (str): Input sentence
  
      Return:
          list: word list
      """
      pat = re.compile(r"[\w]+|[.,!?;|]")
      if isinstance(sent, str):
          return pat.findall(sent.lower())
      else:
          return []
  
file_path: recommenders/recommenders/models/newsrec/newsrec_utils.py
imports: from recommenders.models.deeprec.deeprec_utils import flat_config, HParams, load_yaml
  import random
  import re
label_desc: Use image node_id 5 for calling a global function with example usage: word_tokenize(sent) and returns: pat, list