def prepare_config(config: Dict[str, Any]) -> Dict[str, Any]: """ The returned config has the following properties: - Uses the multi-node-type autoscaler configuration. - Merged with the appropriate defaults.yaml - Has a valid Docker configuration if provided. - Has max_worker set for each node type. """ with_defaults = fillout_defaults(config) merge_setup_commands(with_defaults) validate_docker_config(with_defaults) fill_node_type_max_workers(with_defaults) return with_defaults
def prepare_config(config): with_defaults = fillout_defaults(config) merge_setup_commands(with_defaults) validate_docker_config(with_defaults) fill_node_type_max_workers(with_defaults) return with_defaults
def prepare_config(config): with_defaults = fillout_defaults(config) merge_setup_commands(with_defaults) validate_docker_config(with_defaults) return with_defaults