def _query_pdc(query):
    'Send a GraphQL query to the PDC and return the results.'
    url = 'https://pdc.cancer.gov/graphql'
    try:
        response = requests.post(url, json={'query': query})
        response.raise_for_status()
    except requests.RequestException:
        raise NoInternetError('Insufficient internet. Check your internet connection.') from None
    return response.json()
Send a GraphQL query to the PDC and return the results.
def _query_pdc(query):
    
    url = 'https://pdc.cancer.gov/graphql'
    try:
        response = requests.post(url, json={'query': query})
        response.raise_for_status()
    except requests.RequestException:
        raise NoInternetError('Insufficient internet. Check your internet connection.') from None
    return response.json()