docstr: filtering parameters. default skips that filter.
  :param catNms (str array)  : get cats for given cat names
  :param supNms (str array)  : get cats for given supercategory names
  :param catIds (int array)  : get cats for given cat ids
  :return: ids (int array)   : integer array of cat ids
docstr_tok: ["filtering","parameters",".","default","skips","that","filter",".",":","param","catNms","(","str","array",")",":","get","cats","for","given","cat","names",":","param","supNms","(","str","array",")",":","get","cats","for","given","supercategory","names",":","param","catIds","(","int","array",")",":","get","cats","for","given","cat","ids",":","return",":","ids","(","int","array",")",":","integer","array","of","cat","ids"]
code: def getCatIds(self, catNms=[], supNms=[], catIds=[]):
      """
      filtering parameters. default skips that filter.
      :param catNms (str array)  : get cats for given cat names
      :param supNms (str array)  : get cats for given supercategory names
      :param catIds (int array)  : get cats for given cat ids
      :return: ids (int array)   : integer array of cat ids
      """
      catNms = catNms if type(catNms) == list else [catNms]
      supNms = supNms if type(supNms) == list else [supNms]
      catIds = catIds if type(catIds) == list else [catIds]
  
      if len(catNms) == len(supNms) == len(catIds) == 0:
          cats = self.dataset["categories"]
      else:
          cats = self.dataset["categories"]
          cats = (
              cats
              if len(catNms) == 0
              else [cat for cat in cats if cat["name"] in catNms]
          )
          cats = (
              cats
              if len(supNms) == 0
              else [
                  cat for cat in cats if cat["supercategory"] in supNms
              ]
          )
          cats = (
              cats
              if len(catIds) == 0
              else [cat for cat in cats if cat["id"] in catIds]
          )
      ids = [cat["id"] for cat in cats]
      return ids
  
imports: import json
  import time
  import matplotlib.pyplot
  from matplotlib.collections import PatchCollection
  from matplotlib.patches import Polygon
  import numpy
  import copy
  import itertools
  from .None import mask
  import os
  from collections import defaultdict
  import sys
label_desc: Use image node_id 5 for calling the COCO obj's underlying member method code with example usage: obj.getCatIds(catNms, supNms, catIds) and returns: ids