code: def pygments_required(func):
      
      def wrapper(*args, **kwargs):
          if not HAS_PYGMENTS:  # pragma: no cover
              raise ImportError(
                  "Please install 'pygments' library to use syntax_color.")
          rv = func(*args, **kwargs)
          return rv
      return wrapper
docs: Raise ImportError if pygments is not installed.