class_docstr: Helper class for Auth when executing requests.
class_docstr_tok: ["Helper","class","for","Auth","when","executing","requests","."]
code: def __call__(self, request: PreparedRequest) -> PreparedRequest:
      package_name, provider_version = _get_provider_info()
      request.headers[
          "User-Agent"
      ] = f"{package_name}-v{provider_version}"
      request.headers["Content-Type"] = "application/json"
      request.headers["Authorization"] = f"Token {self.token}"
  
      return request
  
imports: from __future__ import annotations
  import asyncio
  import json
  import time
  from enum import Enum
  from functools import cached_property, wraps
  from inspect import signature
  from typing import TYPE_CHECKING, Any, Callable, Sequence, Set, TypeVar, cast
  import aiohttp
  from aiohttp import ClientResponseError
  from asgiref.sync import sync_to_async
  from requests.auth import AuthBase
  from requests.sessions import Session
  from airflow.exceptions import AirflowException
  from airflow.providers.http.hooks.http import HttpHook
  from airflow.typing_compat import TypedDict
label_desc: Use image node_id 2 for calling the TokenAuth obj's underlying member method code with example usage: obj.__call__(request) and returns: request