def METHOD_NAME(free_layer, mask, allow_oversized_mask):
    """
    Test connection of free layers with correct doughnut mask.
    The first doughnut mask in the parametrization is correct and the second is too
    wide but oversized mask is allowed.
    """
    nest.Connect(
        free_layer,
        free_layer,
        conn_spec={"rule": "pairwise_bernoulli", "mask": mask, "allow_oversized_mask": allow_oversized_mask},
    )