title: Applying a decorator to an imported function?
body: <p>I want to import a function:</p>
  
  <pre><code>from random import randint
  </code></pre>
  
  <p>and then apply a decorator to it:</p>
  
  <pre><code>@decorator
  randint
  </code></pre>
  
  <p>I was wondering if there was some syntactic sugar for this (like what I have above), or do I have to do it as follows:</p>
  
  <pre><code>@decorator
  def randintWrapper(*args):
      return random.randint(*args)
  </code></pre>