code: def delete(word, num=1, skip_first=False, skip_last=False):
      """
      Perturb the word wityh 1 letter deleted.
  
      :param str word: number of typos to add
      :param int num: number of typos to add
      :param bool skip_first: whether delete the char at the beginning of word
      :param bool skip_last: whether delete the char at the end of word
      :return: perturbed strings
      """
  
      if len(word) <= 1:
          return word
  
      chars = list(word)
      start, end = get_start_end(word, skip_first, skip_last)
  
      if end - start + 1 < num:
          return None
  
      swap_idxes = random.sample(list(range(start, end + 1)), num)
      swap_idxes.sort(reverse=True)
  
      for idx in swap_idxes:
          chars = chars[:idx] + chars[idx + 1 :]
  
      return "".join(chars)
  
imports: import random
  import string
label_desc: Use image node_id 5 for calling a global function with example usage: delete(word, num, skip_first, skip_last) and returns: str, word, None