def get_label_class(self):
    label_class = self.label_class
    if ((not label_class) and (self.layout == 'horizontal')):
        label_class = self.horizontal_label_class
        label_class = add_css_class(label_class, 'col-form-label')
    label_class = text_value(label_class)
    if ((not self.show_label) or (self.show_label == 'sr-only')):
        label_class = add_css_class(label_class, 'sr-only')
    return label_class
def get_label_class(self):
    label_class = self.label_class
    if ((not label_class) and (self.layout == 'horizontal')):
        label_class = self.horizontal_label_class
        label_class = add_css_class(label_class, 'col-form-label')
    label_class = text_value(label_class)
    if ((not self.show_label) or (self.show_label == 'sr-only')):
        label_class = add_css_class(label_class, 'sr-only')
    return label_class