code: def __init__(self, svc: Service, server_url: str):
      self._svc = svc
      self.server_url = server_url
  
      if len(svc.apis) == 0:
          raise BentoMLException(
              "No APIs were found when constructing client."
          )
  
      self.endpoints = []
      for name, api in self._svc.apis.items():
          self.endpoints.append(name)
  
          if not hasattr(self, name):
              setattr(
                  self,
                  name,
                  functools.partial(self._call, _bentoml_api=api),
              )
  
imports: from __future__ import annotations
  import functools
  import logging
  import typing
  from abc import ABC
  from abc import abstractmethod
  from http.client import BadStatusLine
  from ...exceptions import BentoMLException
  from ..service.inference_api import InferenceAPI
label_desc: Use image node_id 1 to create a new AsyncClient object from inherited base classes: ABC with example: obj = AsyncClient(svc, server_url)