async def METHOD_NAME(self, api_resource, api_version='v1.0'):
    scopes = ['https://graph.microsoft.com/.default']
    client = GraphClient(credential=self.credentials.get_credentials(), scopes=scopes)
    endpoint = 'https://graph.microsoft.com/{}/{}'.format(api_version, api_resource)
    try:
        response = client.get(endpoint)
        if response.status_code == 200:
            return response.json()
        # If response is 404 then it means there is no resource associated with the provided id
        elif response.status_code == 404:
            return {}
        else:
            print_exception('Failed to query Microsoft Graph endpoint \"{}\": status code {}'.
                            format(api_resource, response.status_code))
            return {}
    except Exception as e:
        print_exception('Failed to query Microsoft Graph endpoint \"{}\": {}'.format(api_resource, e))
        return {}