def METHOD_NAME(self, gt, catIds):
    """
    Returns all the images that have *any* of the categories in `catIds`,
    unlike the built-in `gt.getImgIds` which returns all the images containing
    *all* of the categories in `catIds`.
    """
    imgIds = set()
    for catId in catIds:
        imgIds |= set(gt.catToImgs[catId])
    return list(imgIds)