def METHOD_NAME(syn_model):
    """
    Test multithreaded retrieval of connections filtered by synapse model.
    The relative ordering of connection data from threads is random under
    OpenMP. Hence, the retrieved connections must be sorted before comparing
    with expectation.
    """
    nodes = build_net(num_threads=4)
    syn_collection = nest.GetConnections(synapse_model=syn_model)
    actual_connections = pd.DataFrame.from_dict(syn_collection.get(["source", "target"]))
    actual_connections.sort_values(by=["source", "target"], ignore_index=True, inplace=True)
    actual_sources = actual_connections["source"]
    actual_targets = actual_connections["target"]
    expected_sources = nodes[f"{syn_model}"]["sources"].tolist()
    expected_targets = nodes[f"{syn_model}"]["targets"].tolist()
    nptest.assert_array_equal(actual_sources, expected_sources)
    nptest.assert_array_equal(actual_targets, expected_targets)