def METHOD_NAME():
    UNSORTED_PLUGIN_VERSIONS = SORTED_PLUGIN_VERSIONS.copy()
    random.shuffle(UNSORTED_PLUGIN_VERSIONS)  # noqa: DUO102
    assert UNSORTED_PLUGIN_VERSIONS != SORTED_PLUGIN_VERSIONS
    repository_index = AgentPluginRepositoryIndex(
        compatible_infection_monkey_version="development",
        plugins={
            AgentPluginType.PAYLOAD: {PAYLOAD_PLUGIN_NAME: UNSORTED_PLUGIN_VERSIONS},
            AgentPluginType.EXPLOITER: {},
            AgentPluginType.CREDENTIALS_COLLECTOR: {PAYLOAD_PLUGIN_NAME: [PLUGIN_VERSION_1_0_0]},
        },
    )
    assert repository_index.plugins == {
        AgentPluginType.PAYLOAD: {PAYLOAD_PLUGIN_NAME: SORTED_PLUGIN_VERSIONS},
        AgentPluginType.EXPLOITER: {},
        AgentPluginType.CREDENTIALS_COLLECTOR: {PAYLOAD_PLUGIN_NAME: [PLUGIN_VERSION_1_0_0]},
    }