def _instance_or_null(self, instance_class, json):
        if json is None:
            return NullObject(instance_class.__name__)
        if not isinstance(json, dict):
            return exceptions.UnprocessableResponseBody(
                "GitHub's API returned a body that could not be handled", json
            )
        try:
            return instance_class(json, self)
        except __HOLE__:  # instance_class is not a subclass of GitHubCore
            return instance_class(json)
dataset/ETHPy150Open sigmavirus24/github3.py/github3/models.py/GitHubCore._instance_or_null