code: def make_label_compatible(cls, label):
          
          label_mutated = cls.mutate_label(label)
          if cls.max_column_name_length and len(label_mutated) > cls.max_column_name_length:
              label_mutated = cls.truncate_label(label)
          if cls.force_column_alias_quotes:
              label_mutated = quoted_name(label_mutated, True)
          return label_mutated
docs: Conditionally mutate and/or quote a sql column/expression label. If
          force_column_alias_quotes is set to True, return the label as a
          sqlalchemy.sql.elements.quoted_name object to ensure that the select query
          and query results have same case. Otherwise return the mutated label as a
          regular string. If maxmimum supported column name length is exceeded,
          generate a truncated label by calling truncate_label().