private static CPUResource getCpuCores(final Configuration config) {
        return getCpuCoresWithFallback(config, -1.0);
    }
@Test
    void testConfigNoCpuCores() {
        Configuration conf = new Configuration();
        conf.set(TaskManagerOptions.NUM_TASK_SLOTS, 3);
        validateInAllConfigurations(
                conf,
                taskExecutorProcessSpec ->
                        assertThat(taskExecutorProcessSpec.getCpuCores())
                                .isEqualTo(new CPUResource(3.0)));
    }