docstr: replace known variable occurrences in CloudWatch Dashboard config file
docstr_tok: ["replace","known","variable","occurrences","in","CloudWatch","Dashboard","config","file"]
code: def _replace_dashboard_config_vars(
      self, config_type: str
  ) -> List[str]:
      """
      replace known variable occurrences in CloudWatch Dashboard config file
      """
      data = self._load_config_file(config_type)
      widgets = []
      for item in data:
          item_out = self._replace_all_config_variables(
              item,
              self.node_id,
              self.cluster_name,
              self.provider_config["region"],
          )
          widgets.append(item_out)
      return widgets
  
imports: import copy
  import hashlib
  import json
  import logging
  import os
  import time
  from enum import Enum
  from typing import Any, Callable, Dict, List, Union
  import botocore
  from ray.autoscaler._private.aws.utils import client_cache, resource_cache
  from ray.autoscaler.tags import NODE_KIND_HEAD, TAG_RAY_CLUSTER_NAME, TAG_RAY_NODE_KIND
label_desc: Use image node_id 24 for calling the CloudwatchHelper obj's underlying member method code with example usage: obj._replace_dashboard_config_vars(config_type) and returns: widgets