code: def test_raw_response_list(self, client: OpenAI) -> None:
      response = client.beta.threads.messages.with_raw_response.list(
          "string",
      )
  
      assert response.is_closed is True
      assert (
          response.http_request.headers.get("X-Stainless-Lang")
          == "python"
      )
      message = response.parse()
      assert_matches_type(
          SyncCursorPage[ThreadMessage], message, path=["response"]
      )
  
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.pagination import SyncCursorPage, AsyncCursorPage
  from openai.types.beta.threads import ThreadMessage
label_desc: Use image node_id 17 for calling the TestMessages obj's underlying member method code with example usage: obj.test_raw_response_list(client) without return types