code: public static <T> TaggedValue<T> taggedValue(String tag, T rep) {
          return new TaggedValueImpl<T>(tag, rep);
      }
docs: Creates a TaggedValue
  @param tag tag string
  @param rep value representation
  @return a tagged value