code: public static <SI, SO> GlobalMetadataBuilder<SO> builderWithInput(GlobalMetadata<SI> inputMetadata, Optional<SO> outputSchema) {
      GlobalMetadataBuilder<SO> builder = (GlobalMetadataBuilder<SO>) builder();
  
      if (outputSchema.isPresent()) {
        builder.schema(outputSchema.get());
      }
  
      return builder;
    }
docs: Builder that takes in an input {@GlobalMetadata} to use as a base.
  @param inputMetadata input metadata
  @param outputSchema output schema to set in the builder
  @param <SI> input schema type
  @param <SO> output schema type
  @return builder