def METHOD_NAME(self, path):
    url = self.controller_uri + path
    r = requests.get(url, headers={"Accept": "application/json"}, auth=HTTPBasicAuth(self.username, self.password))
    try:
        result = r.json()
        logger.debug("get_metadata_from_controller from path %s", path)
    except ValueError as e:
        raise pinotdb.exceptions.DatabaseError(
            f"Got invalid json response from {self.controller_uri}:{path}: {r.text}"
        ) from e
    return result