def get_entitlement(self, subject, entitlement_id, repo=None, package=None, version=None,
                        product=None):
        """ Get an entitlement by its id and scope. Scope can be a product, a repository, a package
            or a version.