code: def requires_nltk_corpus(func):
      """Wraps a function that requires an NLTK corpus. If the corpus isn't found,
      raise a :exc:`MissingCorpusError`.
      """
  
      @wraps(func)
      def decorated(*args, **kwargs):
          try:
              return func(*args, **kwargs)
          except LookupError as err:
              print(err)
              raise MissingCorpusError()
  
      return decorated
  
file_path: TextBlob/textblob/decorators.py
imports: from __future__ import absolute_import
  from functools import wraps
  from textblob.exceptions import MissingCorpusError
label_desc: Use image node_id 1 for calling a global function with example usage: requires_nltk_corpus(func) and returns: decorated, func