parameters: (self)
return_statement: return list(labels)
docstring: Return a list of user-defined labels in the mailbox.
docstring_summary: Return a list of user-defined labels in the mailbox.
docstring_tokens: Return a list of user - defined labels in the mailbox .
function: def get_labels(self):
          """Return a list of user-defined labels in the mailbox."""
          self._lookup()
          labels = set()
          for label_list in self._labels.values():
              labels.update(label_list)
          labels.difference_update(self._special_labels)
          return list(labels)
function_tokens: def get_labels ( self ) : self . _lookup ( ) labels = set ( ) for label_list in self . _labels . values ( ) : labels . update ( label_list ) labels . difference_update ( self . _special_labels ) return list ( labels )