docstr: Updates the class state variables.
  
  For legacy yamls, it merges previous state and new state to make sure
  inferered resources are not lost.
docstr_tok: ["Updates","the","class","state","variables",".","For","legacy","yamls",",","it","merges","previous","state","and","new","state","to","make","sure","inferered","resources","are","not","lost","."]
code: def reset_config(
      self,
      provider: NodeProvider,
      node_types: Dict[NodeType, NodeTypeConfigDict],
      max_workers: int,
      head_node_type: NodeType,
      upscaling_speed: float = 1,
  ) -> None:
      """Updates the class state variables.
  
      For legacy yamls, it merges previous state and new state to make sure
      inferered resources are not lost.
      """
      self.provider = provider
      self.node_types = copy.deepcopy(node_types)
      self.node_resource_updated = set()
      self.max_workers = max_workers
      self.head_node_type = head_node_type
      self.upscaling_speed = upscaling_speed
  
imports: import collections
  import copy
  import logging
  import os
  from abc import abstractmethod
  from functools import partial
  from typing import Callable, Dict, List, Optional, Tuple
  import ray
  from ray._private.gcs_utils import PlacementGroupTableData
  from ray.autoscaler._private.constants import AUTOSCALER_CONSERVE_GPU_NODES, AUTOSCALER_UTILIZATION_SCORER_KEY
  from ray.autoscaler._private.loader import load_function_or_class
  from ray.autoscaler._private.node_provider_availability_tracker import NodeAvailabilitySummary
  from ray.autoscaler._private.util import NodeID, NodeIP, NodeType, NodeTypeConfigDict, ResourceDict, is_placement_group_resource
  from ray.autoscaler.node_provider import NodeProvider
  from ray.autoscaler.tags import NODE_KIND_HEAD, NODE_KIND_UNMANAGED, NODE_KIND_WORKER, TAG_RAY_NODE_KIND, TAG_RAY_USER_NODE_TYPE
  from ray.core.generated.common_pb2 import PlacementStrategy
label_desc: Use image node_id 3 for calling the ResourceDemandScheduler obj's underlying member method code with example usage: obj.reset_config(provider, node_types, max_workers, head_node_type, upscaling_speed) without return types