code: def inherited_labels(cls):
          
          return [scls.__label__ for scls in cls.mro()
                  if hasattr(scls, '__label__') and not hasattr(
                  scls, '__abstract_node__')]
docs: Return list of labels from nodes class hierarchy.
  
          :return: list