code: def test_streaming_response_create_overload_2(
      self, client: OpenAI
  ) -> None:
      with client.chat.completions.with_streaming_response.create(
          messages=[
              {
                  "content": "string",
                  "role": "system",
              }
          ],
          model="gpt-3.5-turbo",
          stream=True,
      ) as response:
          assert not response.is_closed
          assert (
              response.http_request.headers.get("X-Stainless-Lang")
              == "python"
          )
  
          stream = response.parse()
          stream.close()
  
      assert cast(Any, response.is_closed) is True
  
file_path: openai-python/tests/api_resources/chat/test_completions.py
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._client import OpenAI, AsyncOpenAI
  from openai.types.chat import ChatCompletion
label_desc: Use image node_id 8 for calling the TestCompletions obj's underlying member method code with example usage: obj.test_streaming_response_create_overload_2(client) without return types