docs: def tag_check_function(tags):
      """
      Generates a function that checks whether the given image has any of the listed tags.
  
      :param tags: Tags to check for.
      :type tags: list[unicode | str] | set[unicode | str]
      :return: Function that returns ``True`` if any of the given tags apply to the image, ``False`` otherwise.
      :rtype: (unicode | str) -> bool
      """
      suffixes = [':{0}'.format(t) for t in tags]
  
      def _check_image(image):
          repo_tags = image['RepoTags']
          if not repo_tags:
              return False
          return any(r_tag.endswith(s) for s in suffixes for r_tag in repo_tags)
  
      return _check_image