public static Configuration configurePythonDependencies(ReadableConfig config) {
        final PythonDependencyManager pythonDependencyManager = new PythonDependencyManager(config);
        final Configuration pythonDependencyConfig = new Configuration();
        pythonDependencyManager.applyToConfiguration(pythonDependencyConfig);
        return pythonDependencyConfig;
    }
@Test
    void testPythonArchives() {
        Configuration config = new Configuration();
        config.set(
                PythonOptions.PYTHON_ARCHIVES,
                "hdfs:///tmp_dir/file1.zip,"
                        + "hdfs:///tmp_dir/file1.zip,"
                        + "tmp_dir/py37.zip,"
                        + "tmp_dir/py37.zip#venv,"
                        + "tmp_dir/py37.zip#venv2,tmp_dir/py37.zip#venv");
        Configuration actual = configurePythonDependencies(config);

        Map<String, String> expectedCachedFiles = new HashMap<>();
        expectedCachedFiles.put(
                "python_archive_4cc74e4003de886434723f351771df2a84f72531c52085acc0915e19d70df2ba",
                "hdfs:///tmp_dir/file1.zip");
        expectedCachedFiles.put(
                "python_archive_f8a1c874251230f21094880d9dd878ffb5714454b69184d8ad268a6563269f0c",
                "tmp_dir/py37.zip");
        expectedCachedFiles.put(
                "python_archive_5f3fca2a4165c7d9c94b00bfab956c15f14c41e9e03f6037c83eb61157fce09c",
                "tmp_dir/py37.zip");
        expectedCachedFiles.put(
                "python_archive_c7d970ce1c5794367974ce8ef536c2343bed8fcfe7c2422c51548e58007eee6a",
                "tmp_dir/py37.zip");
        verifyCachedFiles(expectedCachedFiles, config);

        Configuration expectedConfiguration = new Configuration();
        expectedConfiguration.set(PYTHON_ARCHIVES_DISTRIBUTED_CACHE_INFO, new HashMap<>());
        expectedConfiguration
                .get(PYTHON_ARCHIVES_DISTRIBUTED_CACHE_INFO)
                .put(
                        "python_archive_4cc74e4003de886434723f351771df2a84f72531c52085acc0915e19d70df2ba",
                        "file1.zip");
        expectedConfiguration
                .get(PYTHON_ARCHIVES_DISTRIBUTED_CACHE_INFO)
                .put(
                        "python_archive_5f3fca2a4165c7d9c94b00bfab956c15f14c41e9e03f6037c83eb61157fce09c",
                        "py37.zip");
        expectedConfiguration
                .get(PYTHON_ARCHIVES_DISTRIBUTED_CACHE_INFO)
                .put(
                        "python_archive_f8a1c874251230f21094880d9dd878ffb5714454b69184d8ad268a6563269f0c",
                        "py37.zip#venv2");
        expectedConfiguration
                .get(PYTHON_ARCHIVES_DISTRIBUTED_CACHE_INFO)
                .put(
                        "python_archive_c7d970ce1c5794367974ce8ef536c2343bed8fcfe7c2422c51548e58007eee6a",
                        "py37.zip#venv");
        verifyConfiguration(expectedConfiguration, actual);
    }