docstr: Check if CloudWatch configuration was specified by the user
  in their cluster config file.
  
  Specifically, this function checks if a CloudWatch config file is
  specified by the user in their cluster config file.
  
  Args:
      config: provider section of cluster config file.
      config_type: type of CloudWatch config file.
  
  Returns:
      True if config file is specified by user.
      False if config file is not specified.
docstr_tok: ["Check","if","CloudWatch","configuration","was","specified","by","the","user","in","their","cluster","config","file",".","Specifically",",","this","function","checks","if","a","CloudWatch","config","file","is","specified","by","the","user","in","their","cluster","config","file",".","Args",":","config",":","provider","section","of","cluster","config","file",".","config_type",":","type","of","CloudWatch","config","file",".","Returns",":","True","if","config","file","is","specified","by","user",".","False","if","config","file","is","not","specified","."]
code: def cloudwatch_config_exists(
      config: Dict[str, Any], config_type: str
  ) -> bool:
      """Check if CloudWatch configuration was specified by the user
      in their cluster config file.
  
      Specifically, this function checks if a CloudWatch config file is
      specified by the user in their cluster config file.
  
      Args:
          config: provider section of cluster config file.
          config_type: type of CloudWatch config file.
  
      Returns:
          True if config file is specified by user.
          False if config file is not specified.
      """
      cfg = (
          config.get("cloudwatch", {})
          .get(config_type, {})
          .get("config")
      )
      return bool(cfg)
  
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 38 for calling the CloudwatchHelper obj's underlying member method code with example usage: obj.cloudwatch_config_exists(config, config_type) and returns: bool