code: def is_excluded_for_sdesc(self, sdesc, is_tpl=False):
          
          if not is_tpl and self.service_includes:
              return sdesc not in self.service_includes
          if self.service_excludes:
              return sdesc in self.service_excludes
          return False
docs: Check whether this host should have the passed service *description*
              be "excluded" or "not included".
  
          :param sdesc: service description
          :type sdesc:
          :param is_tpl: True if service is template, otherwise False
          :type is_tpl: bool
          :return: True if service description excluded, otherwise False
          :rtype: bool