def METHOD_NAME(dbsession, transact):
    del transact
    from c2cgeoportal_commons.models.main import Interface, LayerWMS, OGCServer, Theme
    themes = []
    for i in range(0, 5):
        theme = Theme(name=f"theme_{i}", ordering=1)
        themes.append(theme)
    servers = [OGCServer(name=f"server_{i}") for i in range(0, 4)]
    layers = []
    for i in range(0, 15):
        layer = LayerWMS(name=f"layer_wms_{i}")
        layer.public = 1 == i % 2
        layer.ogc_server = servers[i % 4]
        dbsession.add(layer)
        layers.append(layer)
    interfaces = []
    for i in range(0, 5):
        interface = Interface(name=f"interface_{i}", description=f"description_{i}")
        interface.themes = [themes[i % 2], themes[(i + 5) % 5]]
        interface.layers = [layers[i % 2], layers[(i + 4) % 5]]
        dbsession.add(interface)
        interfaces.append(interface)
    dbsession.flush()
    yield {"interfaces": interfaces}