code: def verify_environments():
      
      env_confs = discover(
          os.path.join(
              OPTIONS['base_dir'],
              '*.' + OPTIONS['in_ext'],
          )
      )
      success = True
      for conf in env_confs:
          env = Environment(name=conf['name'])
          current_comment = generate_hash_comment(env.infile)
          existing_comment = parse_hash_comment(env.outfile)
          if current_comment == existing_comment:
              logger.info("OK - %s was generated from %s.",
                          env.outfile, env.infile)
          else:
              logger.error("ERROR! %s was not regenerated after changes in %s.",
                           env.outfile, env.infile)
              logger.error("Expecting: %s", current_comment.strip())
              logger.error("Found:     %s", existing_comment.strip())
              success = False
      return success
docs: For each environment verify hash comments and report failures.
      If any failure occured, exit with code 1.