def _get_metadata(self, path):
        if not path:
            raise "Metadata path cannot be empty!"
        res = requests.get("%s%s" % (constants.METADATA_URL, path))
        if res.status_code == 200:
            return str(res.text)
        else:
            raise MetadataError("Unable to get %s" % path)
dataset/ETHPy150Open facebookarchive/neti/neti/registry.py/Connection._get_metadata/original