code: def can_augment_nopunct_predicate(sentence):
      """
      Check that the sentence ends with PUNCT and also doesn't have any words which depend on the last word
      """
      last_word = sentence[-1]
      if last_word.get(UPOS, None) != "PUNCT":
          return False
      # don't cut off MWT
      if len(last_word[ID]) > 1:
          return False
      if any(
          len(word[ID]) == 1 and word[HEAD] == last_word[ID][0]
          for word in sentence
      ):
          return False
      return True
  
file_path: stanza/stanza/models/common/data.py
imports: import logging
  import random
  import torch
  import stanza.models.common.seq2seq_constant
  from stanza.models.common.doc import HEAD, ID, UPOS
label_desc: Use image node_id 7 for calling a global function with example usage: can_augment_nopunct_predicate(sentence) and returns: True, False, False, False