docstr: Get vid ids that satisfy given filter conditions.
  
  :param vidIds (int array) : get vids for given ids
  :param catIds (int array) : get vids with all given cats
  :return: ids (int array)  : integer array of vid ids
docstr_tok: ["Get","vid","ids","that","satisfy","given","filter","conditions",".",":","param","vidIds","(","int","array",")",":","get","vids","for","given","ids",":","param","catIds","(","int","array",")",":","get","vids","with","all","given","cats",":","return",":","ids","(","int","array",")",":","integer","array","of","vid","ids"]
code: def getVidIds(self, vidIds=[], catIds=[]):
      """Get vid ids that satisfy given filter conditions.
  
      :param vidIds (int array) : get vids for given ids
      :param catIds (int array) : get vids with all given cats
      :return: ids (int array)  : integer array of vid ids
      """
      vidIds = vidIds if _isArrayLike(vidIds) else [vidIds]
      catIds = catIds if _isArrayLike(catIds) else [catIds]
  
      if len(vidIds) == len(catIds) == 0:
          ids = self.vids.keys()
      else:
          ids = set(vidIds)
          for i, catId in enumerate(catIds):
              if i == 0 and len(ids) == 0:
                  ids = set(self.catToVids[catId])
              else:
                  ids &= set(self.catToVids[catId])
      return list(ids)
  
imports: import copy
  import itertools
  import json
  import sys
  import time
  from collections import defaultdict
  import numpy
  from pycocotools import mask
label_desc: Use image node_id 5 for calling the YTVIS obj's underlying member method code with example usage: obj.getVidIds(vidIds, catIds) and returns: list