public static Configuration configurePythonDependencies(ReadableConfig config) {
        final PythonDependencyManager pythonDependencyManager = new PythonDependencyManager(config);
        final Configuration pythonDependencyConfig = new Configuration();
        pythonDependencyManager.applyToConfiguration(pythonDependencyConfig);
        return pythonDependencyConfig;
    }
@Test
    void testPythonFiles() {
        Configuration config = new Configuration();
        config.set(
                PythonOptions.PYTHON_FILES,
                "hdfs:///tmp_dir/test_file1.py,tmp_dir/test_file2.py,tmp_dir/test_dir,hdfs:///tmp_dir/test_file1.py");
        Configuration actual = configurePythonDependencies(config);

        Map<String, String> expectedCachedFiles = new HashMap<>();
        expectedCachedFiles.put(
                "python_file_83bbdaee494ad7d9b334c02ec71dc86a0868f7f8e49d1249a37c517dc6ee15a7",
                "hdfs:///tmp_dir/test_file1.py");
        expectedCachedFiles.put(
                "python_file_e57a895cb1256500098be0874128680cd9f56000d48fcd393c48d6371bd2d947",
                "tmp_dir/test_file2.py");
        expectedCachedFiles.put(
                "python_file_e56bc55ff643576457b3d012b2bba888727c71cf05a958930f2263398c4e9798",
                "tmp_dir/test_dir");
        verifyCachedFiles(expectedCachedFiles, config);

        Configuration expectedConfiguration = new Configuration();
        expectedConfiguration.set(PYTHON_FILES_DISTRIBUTED_CACHE_INFO, new HashMap<>());
        expectedConfiguration
                .get(PYTHON_FILES_DISTRIBUTED_CACHE_INFO)
                .put(
                        "python_file_83bbdaee494ad7d9b334c02ec71dc86a0868f7f8e49d1249a37c517dc6ee15a7",
                        "test_file1.py");
        expectedConfiguration
                .get(PYTHON_FILES_DISTRIBUTED_CACHE_INFO)
                .put(
                        "python_file_e57a895cb1256500098be0874128680cd9f56000d48fcd393c48d6371bd2d947",
                        "test_file2.py");
        expectedConfiguration
                .get(PYTHON_FILES_DISTRIBUTED_CACHE_INFO)
                .put(
                        "python_file_e56bc55ff643576457b3d012b2bba888727c71cf05a958930f2263398c4e9798",
                        "test_dir");
        verifyConfiguration(expectedConfiguration, actual);
    }