code: def which(exe):
      '''
      Decorator wrapper for salt.utils.path.which
      '''
      def wrapper(function):
          def wrapped(*args, **kwargs):
              if salt.utils.path.which(exe) is None:
                  raise CommandNotFoundError(
                      'The \'{0}\' binary was not found in $PATH.'.format(exe)
                  )
              return function(*args, **kwargs)
          return identical_signature_wrapper(function, wrapped)
      return wrappef which(exe):
      '''
      Decorator wrapper for salt.utils.path.which
      '''
      def wrapper(function):
          def wrapped(*args, **kwargs):
              if salt.utils.path.which(exe) is None:
                  raise CommandNotFoundError(
                      'The \'{0}\' binary was not found in $PATH.'.format(exe)
                  )
              return function(*args, **kwargs)
          return identical_signature_wrapper(function, wrapped)
      return wrapper
docs: Decorator wrapper for salt.utils.path.which