def load_keys(self, pcr, issuer, replace=False):

        logger.debug("loading keys for issuer: %s" % issuer)
        try:
            logger.debug("pcr: %s" % pcr)
        except MessageException:
            pass

        if replace or issuer not in self.issuer_keys:
            self.issuer_keys[issuer] = []

        try:
            self.add(issuer, pcr["jwks_uri"])
        except KeyError:
            # jwks should only be considered if no jwks_uri is present
            try:
                _keys = pcr["jwks"]["keys"]
                self.issuer_keys[issuer].append(self.keybundle_cls(_keys))
            except KeyError:
                pass
Return true if the object is a generator.
dataset/ETHPy150Open rohe/pyoidc/src/oic/utils/keyio.py/KeyJar.load_keys--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/inspect.py/isgenerator