code: def create_or_update_cluster(config_file, override_min_workers,
                               override_max_workers, no_restart, restart_only,
                               yes, override_cluster_name):
      
      config = yaml.load(open(config_file).read())
      if override_min_workers is not None:
          config["min_workers"] = override_min_workers
      if override_max_workers is not None:
          config["max_workers"] = override_max_workers
      if override_cluster_name is not None:
          config["cluster_name"] = override_cluster_name
      config = _bootstrap_config(config)
      get_or_create_head_node(config, config_file, no_restart, restart_only, yes,
                              override_cluster_name)
docs: Create or updates an autoscaling Ray cluster from a config json.