def METHOD_NAME(legacy_url, split_url):
    logger.info(f"Checking view call.")
    # This is the example contract function call from
    # https://docs.near.org/api/rpc/contracts#call-a-contract-function
    params = {
        "request_type": "call_function",
        "finality": "final",
        "account_id": "dev-1588039999690",
        "method_name": "get_num",
        "args_base64": "e30="
    }
    legacy_resp = json_rpc('query', params, legacy_url)
    split_resp = json_rpc('query', params, split_url)
    if legacy_resp['result']['result'] != split_resp['result']['result']:
        logger.error(
            f'View call check failed, the legacy response and the split response are different'
            f'\nlegacy response\n{legacy_resp}'
            f'\nsplit response\n{split_resp}')
        sys.exit(1)