code: def get_valid_objs(entry, objs):
      valid_objs = []
      width, height = entry["width"], entry["height"]
      for obj in objs:
          if "ignore" in obj and obj["ignore"] == 1:
              continue
          # Convert form x1, y1, w, h to x1, y1, x2, y2
          x1 = obj["bbox"][0]
          y1 = obj["bbox"][1]
          x2 = x1 + np.maximum(0.0, obj["bbox"][2] - 1.0)
          y2 = y1 + np.maximum(0.0, obj["bbox"][3] - 1.0)
          x1, y1, x2, y2 = clip_xyxy_to_image(
              x1, y1, x2, y2, height, width
          )
          # Require non-zero seg area and more than 1x1 box size
          if obj["area"] > 0 and x2 > x1 and y2 > y1:
              valid_objs.append(obj)
      return valid_objs
  
file_path: vissl/vissl/data/datasets/coco.py
imports: import json
  import logging
  import os
  import numpy
  from iopath.common.file_io import g_pathmgr
  from vissl.utils.io import makedir, save_file
label_desc: Use image node_id 3 for calling a global function with example usage: get_valid_objs(entry, objs) and returns: valid_objs