python/ray/autoscaler/_private/aws/cloudwatch/cloudwatch_helper.py
def _replace_config_variables(self, string, node_id, cluster_name, region):
        """
        replace known config variable occurrences in the input string
        does not replace variables with undefined or empty strings
        """

        if node_id:
            string = string.replace("{instance_id}", node_id)
        if cluster_name:
            string = string.replace("{cluster_name}", cluster_name)
        if region:
            string = string.replace("{region}", region)
        return string

        replace known config variable occurrences in the input string
        does not replace variables with undefined or empty strings
        
replace known config variable occurrences in the input string
does not replace variables with undefined or empty strings
replace known config variable occurrences in the input string does not replace variables with undefined or empty strings
def _replace_config_variables(self, string, node_id, cluster_name, region):
        if node_id:
            string = string.replace("{instance_id}", node_id)
        if cluster_name:
            string = string.replace("{cluster_name}", cluster_name)
        if region:
            string = string.replace("{region}", region)
        return string
def _replace_config_variables ( self , string , node_id , cluster_name , region ) : if node_id : string = string . replace ( "{instance_id}" , node_id ) if cluster_name : string = string . replace ( "{cluster_name}" , cluster_name ) if region : string = string . replace ( "{region}" , region ) return string
replace known config variable occurrences in the input string
does not replace variables with undefined or empty strings
replace known config variable occurrences in the input string does not replace variables with undefined or empty strings
"""
        replace known config variable occurrences in the input string
        does not replace variables with undefined or empty strings
        """
self
string
node_id
cluster_name
region