static void readFromGetEndpointExample(List<String> urls, Pipeline pipeline) {
    //        Pipeline pipeline = Pipeline.create();
    //        List<String> urls = ImmutableList.of(
    //                "https://storage.googleapis.com/generativeai-downloads/images/cake.jpg",
    //                "https://storage.googleapis.com/generativeai-downloads/images/chocolate.png",
    //                "https://storage.googleapis.com/generativeai-downloads/images/croissant.jpg",
    //                "https://storage.googleapis.com/generativeai-downloads/images/dog_form.jpg",
    //                "https://storage.googleapis.com/generativeai-downloads/images/factory.png",
    //                "https://storage.googleapis.com/generativeai-downloads/images/scones.jpg"
    //        );

    // Step 1: Convert the list of URLs to a PCollection of ImageRequests.
    PCollection<KV<String, ImageRequest>> requests = Images.requestsOf(urls, pipeline);

    // Step 2: RequestResponseIO requires a Coder as its second parameter.
    KvCoder<String, ImageResponse> responseCoder =
        KvCoder.of(StringUtf8Coder.of(), ImageResponseCoder.of());

    // Step 3: Process ImageRequests using RequestResponseIO instantiated from the Caller
    // implementation and the expected PCollection response Coder.
    Result<KV<String, ImageResponse>> result =
        requests.apply(
            ImageResponse.class.getSimpleName(),
            RequestResponseIO.of(HttpImageClient.of(), responseCoder));

    // Step 4: Log any failures to stderr.
    result.getFailures().apply("logErrors", Log.errorOf());

    // Step 5: Log output to stdout.
    Images.displayOf(result.getResponses()).apply("logResponses", Log.infoOf());
  }
@Test
  public void testReadFromGetEndpointExample() {
    Pipeline pipeline = Pipeline.create();

    List<String> urls =
        ImmutableList.of(
            "https://storage.googleapis.com/generativeai-downloads/images/cake.jpg",
            "https://storage.googleapis.com/generativeai-downloads/images/chocolate.png",
            "https://storage.googleapis.com/generativeai-downloads/images/croissant.jpg",
            "https://storage.googleapis.com/generativeai-downloads/images/dog_form.jpg",
            "https://storage.googleapis.com/generativeai-downloads/images/factory.png",
            "https://storage.googleapis.com/generativeai-downloads/images/scones.jpg");
    UsingHttpClientExample.readFromGetEndpointExample(urls, pipeline);

    pipeline.run();
  }