title: How to do conditional decorator
body: <pre><code>def decorators(*args, **kwargs): 
      def inner(func): 
          print ("Inner()")
          return func
  
      def err(func):
          print ("Your input wrong")
  
      if kwargs['test']== "test1":
          print("decorators()")
          return inner
      else:
          return err
  
  @decorators(test="test1") 
  def funcdemo1():
      print ("funcdemo1()")
  def demo():
      print ("demo() call")
  funcdemo1()
  demo()
  </code></pre>
  
  <p>The above code if I pass <code>test="test2"</code> in the decorators then the funcdemo1() stop the execution and show some error mesage, and the demo() will be execute.</p>
  
  <p><strong>Is it possible?</strong></p>