code: def filter_service_by_host_tag_name(tpl):
      
  
      def inner_filter(items):
          """Inner filter for service. Accept if tpl in service.host.tags"""
          service = items["service"]
          host = items["hosts"][service.host]
          if service is None or host is None:
              return False
          return tpl in [t.strip() for t in host.tags]
  
      return inner_filter
docs: Filter for service
      Filter on tag
  
      :param tpl: tag to filter
      :type tpl: str
      :return: Filter
      :rtype: bool