parameters: (self)
docstring: :rtype: list of :class:`Decorator`
docstring_summary: :rtype: list of :class:`Decorator`
docstring_tokens: : rtype : list of : class : Decorator
function: def get_decorators(self):
          """
          :rtype: list of :class:`Decorator`
          """
          decorated = self.parent
          if decorated.type == 'decorated':
              if decorated.children[0].type == 'decorators':
                  return decorated.children[0].children
              else:
                  return decorated.children[:1]
          else:
              return []
function_tokens: def get_decorators ( self ) : decorated = self . parent if decorated . type == 'decorated' : if decorated . children [ 0 ] . type == 'decorators' : return decorated . children [ 0 ] . children else : return decorated . children [ : 1 ] else : return [ ]