code: def check_not_empty(tree):
      root = tree.getroot()
      for comment in root.iter("briefdescription"):
          if comment.find("para") is not None:
              return True
      for comment in root.iter("detaileddescription"):
          if comment.find("para") is not None:
              return True
      return False
  
imports: import os
  import sys
  import xml.etree.ElementTree
label_desc: Use image node_id 3 for calling a global function with example usage: check_not_empty(tree) and returns: False, True, True