class_docstr: This is a legacy class as it will be replaced by `APIResponse`
  and `AsyncAPIResponse` in the `_response.py` file in the next major
  release.
  
  For the sync client this will mostly be the same with the exception
  of `content` & `text` will be methods instead of properties. In the
  async client, all methods will be async.
  
  A migration script will be provided & the migration in general should
  be smooth.
class_docstr_tok: ["This","is","a","legacy","class","as","it","will","be","replaced","by","`","APIResponse","`","and","`","AsyncAPIResponse","`","in","the","`","_response.py","`","file","in","the","next","major","release",".","For","the","sync","client","this","will","mostly","be","the","same","with","the","exception","of","`","content","`","&","`","text","`","will","be","methods","instead","of","properties",".","In","the","async","client",",","all","methods","will","be","async",".","A","migration","script","will","be","provided","&","the","migration","in","general","should","be","smooth","."]
code: def __repr__(self) -> str:
      return f"<APIResponse [{self.status_code} {self.http_response.reason_phrase}] type={self._cast_to}>"
  
imports: from __future__ import annotations
  import os
  import inspect
  import logging
  import datetime
  import functools
  from typing import TYPE_CHECKING, Any, Union, Generic, TypeVar, Callable, Iterator, AsyncIterator, cast
  from typing_extensions import Awaitable, ParamSpec, get_args, override, deprecated, get_origin
  import anyio
  import httpx
  from ._types import NoneType
  from ._utils import is_given
  from ._models import BaseModel, is_basemodel
  from ._constants import RAW_RESPONSE_HEADER
  from ._exceptions import APIResponseValidationError
label_desc: Use image node_id 14 for calling the LegacyAPIResponse obj's underlying member method code with example usage: obj.__repr__() and returns: str, self, str, self, str, self, str