code: public static void checkTypeConsistency(Schema schema, String fieldName,
        Object... values) {
      checkTypeConsistency(schema, null, fieldName, values);
    }
docs: Checks that the type of each of {@code values} is consistent with the type of
  field {@code fieldName} declared in the Avro schema (from {@code descriptor}).