def METHOD_NAME(nodes):
    """
    Test retrieval of connections with node subset and synapse model.
    The test ensures that retrieval of a subset of connections works when
    filtering by nodes and synapse model.
    """
    # Take first 3 static sources and targets
    src_static = nodes["static_synapse"]["sources"][:3].tolist()
    tgt_static = nodes["static_synapse"]["targets"][:3].tolist()
    # Take final 3 stpd sources and targes to avoid those with static+stdp
    src_stdp = nodes["stdp_synapse"]["sources"][-3:].tolist()
    tgt_stpd = nodes["stdp_synapse"]["targets"][-3:].tolist()
    src_all = src_static + src_stdp
    tgt_all = tgt_static + tgt_stpd
    conns = nest.GetConnections(
        source=nest.NodeCollection(src_all), target=nest.NodeCollection(tgt_all), synapse_model="static_synapse"
    )
    actual_sources = conns.get("source")
    actual_targets = conns.get("target")
    nptest.assert_array_equal(actual_sources, src_static)
    nptest.assert_array_equal(actual_targets, tgt_static)