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
  
file_path: mmdetection/tools/dataset_converters/refcoco2odvg.py
imports: import argparse
  import os.path
  import jsonlines
  from pycocotools.coco import COCO
  from tqdm import tqdm
label_desc: Use image node_id 3 for calling a global function with example usage: has_valid_annotation(anno) and returns: True, False, False