code: def truncate_label(cls, label):
          
          label = hashlib.md5(label.encode('utf-8')).hexdigest()
          # truncate hash if it exceeds max length
          if cls.max_column_name_length and len(label) > cls.max_column_name_length:
              label = label[:cls.max_column_name_length]
          return label
docs: In the case that a label exceeds the max length supported by the engine,
          this method is used to construct a deterministic and unique label based on
          an md5 hash.