title: How can I pass a variable in a decorator to function's argument in a decorated function?
body: <p>I am in progress to learn Python. Hopefully someone points me to correct way.<br>
  This is what I'd like to do below:</p>
  
  <pre><code>def decorate(function):
      def wrap_function(*args, **kwargs):
          str = 'Hello!'  # This is what I want
          return function(*args, **kwargs)
      return wrap_function
  
  @decorate
  def print_message():
      # I'd like to pass 'str' as mentioned above
      # to any functions' argument like below:
      print(str)  # 'str' is same as above
  </code></pre>
  
  <p>Any idea? Thanks in advance.</p>