def METHOD_NAME():
    """Test SynapseCollection distance function for positions placed freely in space"""
    positions = nest.spatial.free(nest.random.uniform(), num_dimensions=2)
    s_nodes = nest.Create("iaf_psc_alpha", n=5, positions=positions)
    t_nodes = nest.Create("iaf_psc_alpha", n=7, positions=positions)
    nest.Connect(s_nodes, t_nodes, {"rule": "pairwise_bernoulli", "p": 0.7})
    conns = nest.GetConnections()
    dist = conns.distance
    ref_distance = _calculate_distance(conns, s_nodes, t_nodes)
    assert dist == pytest.approx(ref_distance)