code: def test_streaming_response_create_variation(
      self, client: OpenAI
  ) -> None:
      with client.images.with_streaming_response.create_variation(
          image=b"raw file contents",
      ) as response:
          assert not response.is_closed
          assert (
              response.http_request.headers.get("X-Stainless-Lang")
              == "python"
          )
  
          image = response.parse()
          assert_matches_type(ImagesResponse, image, path=["response"])
  
      assert cast(Any, response.is_closed) is True
  
imports: from __future__ import annotations
  import os
  from typing import Any, cast
  import pytest
  from openai import OpenAI, AsyncOpenAI
  from tests.utils import assert_matches_type
  from openai.types import ImagesResponse
  from openai._client import OpenAI, AsyncOpenAI
label_desc: Use image node_id 4 for calling the TestImages obj's underlying member method code with example usage: obj.test_streaming_response_create_variation(client) without return types