code: def __init__(
      self,
      output_tensor_mapping: Optional[Dict[str, str]] = None,
      output_shapes: Optional[Dict[str, Tuple]] = None,
      output_dtypes: Optional[Dict[str, "np.dtype"]] = None,
      tf_model_name: Optional[str] = None,
      **kwargs,
  ):
      super().__init__(**kwargs)
      self.output_tensor_mapping = output_tensor_mapping or kwargs[
          "model_settings"
      ].get("output_tensor_mapping")
      self.output_shapes = output_shapes or kwargs[
          "model_settings"
      ].get("output_shapes")
      self.output_dtypes = (
          output_dtypes  # type: ignore
          or kwargs["model_settings"].get("output_dtypes")
          or {name: float for name in self.output_tensor_mapping}
      )
      # sanity checks
      assert (
          self.output_tensor_mapping.keys() == self.output_dtypes.keys()
      )
      assert (
          self.output_tensor_mapping.keys() == self.output_shapes.keys()
      )
  
      self.tf_model_name = (
          tf_model_name
          or kwargs.get("model_settings", {}).get("tf_model_name")
          or self.configuration_key
      )
  
      connect_tf_serving(
          self.tf_model_name,
          self.service_settings.tf_serving.host,
          self.service_settings.tf_serving.port,
          self.service_settings.tf_serving.mode,
      )
      self.aiohttp_session: Optional[aiohttp.ClientSession] = None
  
imports: import abc
  import json
  import os
  from typing import Any, Dict, List, Optional, Tuple, Type
  import aiohttp
  import requests
  from structlog import get_logger
  from tenacity import Retrying, retry_if_exception, stop_after_attempt, wait_random_exponential
  from modelkit.core.model import AsyncModel, Model
  from modelkit.core.types import ItemType, ReturnType
  from modelkit.utils.serialization import safe_np_dump
label_desc: Use image node_id 1 to create a new AsyncTensorflowModel object from inherited base classes: TensorflowModelMixin, AsyncModel with example: obj = AsyncTensorflowModel(output_tensor_mapping, output_shapes, output_dtypes, tf_model_name)