code: def _is_deprecated(func):
      
      if sys.version_info < (3, 5):
          raise NotImplementedError("This is only available for python3.5 "
                                    "or above")
      closures = getattr(func, '__closure__', [])
      if closures is None:
          closures = []
      is_deprecated = ('deprecated' in ''.join([c.cell_contents
                                                for c in closures
                                                if isinstance(c.cell_contents, str)]))
      return is_deprecated
docs: Helper to check if func is wraped by our deprecated decorator