code: def has_valid_annotation(anno):
      # if it's empty, there is no annotation
      if len(anno) == 0:
          return False
      # if all boxes have close to zero area, there is no annotation
      if _has_only_empty_bbox(anno):
          return False
      return True
  
imports: import argparse
  import jsonlines
  from pycocotools.coco import COCO
  from tqdm import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: has_valid_annotation(anno) and returns: True, False, False