code: public static Resource create(@Nullable String type, Map<String, String> labels) {
      return createInternal(
          type,
          Collections.unmodifiableMap(
              new LinkedHashMap<String, String>(Utils.checkNotNull(labels, "labels"))));
    }
docs: Returns a {@link Resource}.
  
  @param type the type identifier for the resource.
  @param labels a map of labels that describe the resource.
  @return a {@code Resource}.
  @throws NullPointerException if {@code labels} is null.
  @throws IllegalArgumentException if type or label key or label value is not a valid printable
  ASCII string or exceed {@link #MAX_LENGTH} characters.
  @since 0.18