code: def tokenize(
      sentence, regex=SENTENCE_SPLIT_REGEX, keep=None, remove=None
  ):
      if keep is None:
          keep = ["'s"]
      if remove is None:
          remove = [",", "?"]
      sentence = sentence.lower()
  
      for token in keep:
          sentence = sentence.replace(token, " " + token)
  
      for token in remove:
          sentence = sentence.replace(token, "")
  
      tokens = regex.split(sentence)
      tokens = [t.strip() for t in tokens if len(t.strip()) > 0]
      return tokens
  
imports: import os
  import re
  from collections import Counter
  from itertools import chain
  import torch
  from mmf.common.registry import registry
  from mmf.utils.file_io import PathManager
  from mmf.utils.general import get_absolute_path
label_desc: Use image node_id 3 for calling a global function with example usage: tokenize(sentence, regex, keep, remove) and returns: tokens