def resolve_remote(self, uri):

        scheme = urlsplit(uri).scheme

        if scheme in self.handlers:
            result = self.handlers[scheme](uri)
        elif (
            scheme in ["http", "https"] and
            requests and
            getattr(requests.Response, "json", None) is not None
        ):
            # Requests has support for detecting the correct encoding of
            # json over http
            if callable(requests.Response.json):
                result = requests.get(uri).json()
            else:
                result = requests.get(uri).json
        else:
            # Otherwise, pass off to urllib and assume utf-8
            result = json.loads(urlopen(uri).read().decode("utf-8"))

        if self.cache_remote:
            self.store[uri] = result
        return result
Gets node name of a node.
dataset/ETHPy150Open danielyule/hearthbreaker/jsonschema/validators.py/RefResolver.resolve_remote--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetNodeName