docs: def CheckTemplates(self, base_dir, version):
      """Verify we have at least one template that matches maj.minor version."""
      major_minor = ".".join(version.split(".")[0:2])
      templates = glob.glob(
          os.path.join(base_dir, "templates/*%s*.zip" % major_minor))
      required_templates = set(
          [x.replace("maj.minor", major_minor) for x in self.REQUIRED_TEMPLATES])
  
      # Client templates have an extra version digit, e.g. 3.1.0.0
      templates_present = set([
          re.sub(r"_%s[^_]+_" % major_minor, "_%s_" % major_minor,
                 os.path.basename(x)) for x in templates
      ])
  
      difference = required_templates - templates_present
      if difference:
        raise RuntimeError("Missing templates %s" % difference)