def token_network(
    register_token_network,
    custom_token,
    channel_participant_deposit_limit,
    token_network_deposit_limit,
    web3,
):
    """Register a new token network for a custom token"""
    global snapshot_before_token_network
    snapshot_before_token_network = web3.testing.snapshot()
    return register_token_network(
        custom_token.address, channel_participant_deposit_limit, token_network_deposit_limit
    )