title: Apply one of two decorators according to a condition in Python
body: <p>I want to do something like</p>
  
  <pre><code>if a:
    dec = decorator_1
  else:
    dec = decorator_2
  
  @dec
  def foo():
    pass
  </code></pre>
  
  <p>possible?</p>