title: How to get all methods of a Python class with given decorator?
body: <p>How to get all methods of a given class A that are decorated with the <code>@decorator2</code>?</p>
  <pre class="lang-py prettyprint-override"><code>class A():
      def method_a(self):
        pass
  
      @decorator1
      def method_b(self, b):
        pass
  
      @decorator2
      def method_c(self, t=5):
        pass
  </code></pre>