docs: def _CheckCollation(cursor):
    """Checks MySQL collation and warns if misconfigured."""
  
    # Do not fail for wrong collation, because changing it is harder than changing
    # the character set. Some providers only allow changing character set and then
    # use the default collation. Also, misconfigured collation is not expected to
    # have major negative impacts, since it only affects string sort order for
    # some locales.
  
    cur_collation_connection = _ReadVariable("collation_connection", cursor)
    if cur_collation_connection != COLLATION:
      logging.warning("Require MySQL collation_connection of %s, got %s.",
                      COLLATION, cur_collation_connection)
  
    cur_collation_database = _ReadVariable("collation_database", cursor)
    if cur_collation_database != COLLATION:
      logging.warning(
          "Require MySQL collation_database of %s, got %s."
          " To create your database, use: %s", COLLATION, cur_collation_database,
          CREATE_DATABASE_QUERY)