def METHOD_NAME(self, cat_names=[], sup_names=[], cat_ids=[]):
    cat_ids_coco = self.getCatIds(cat_names, sup_names, cat_ids)
    if None in cat_names:
        index = [i for i, v in enumerate(cat_names) if v is not None]
        cat_ids = list(range(len(cat_names)))
        for i in range(len(index)):
            cat_ids[index[i]] = cat_ids_coco[i]
        return cat_ids
    else:
        return cat_ids_coco