class_docstr: An async implementation of a gRPC server.
code: def configure_port(self, addr: str):
      if self.ssl_certfile:
          client_auth = False
          ca_cert = None
          assert (
              self.ssl_keyfile
          ), "'ssl_keyfile' is required when 'ssl_certfile' is provided."
          if self.ssl_ca_certs is not None:
              client_auth = True
              ca_cert = load_from_file(self.ssl_ca_certs)
          server_credentials = grpc.ssl_server_credentials(
              (
                  (
                      load_from_file(self.ssl_keyfile),
                      load_from_file(self.ssl_certfile),
                  ),
              ),
              root_certificates=ca_cert,
              require_client_auth=client_auth,
          )
  
          self.add_secure_port(addr, server_credentials)
      else:
          self.add_insecure_port(addr)
  
imports: from __future__ import annotations
  import asyncio
  import inspect
  import logging
  import os
  import sys
  import typing
  from concurrent.futures import ThreadPoolExecutor
  from functools import cached_property
  from functools import partial
  from typing import TYPE_CHECKING
  from simple_di import Provide
  from simple_di import inject
  from ...grpc.utils import LATEST_PROTOCOL_VERSION
  from ...grpc.utils import import_generated_stubs
  from ...grpc.utils import import_grpc
  from ...grpc.utils import load_from_file
  from ..configuration.containers import BentoMLContainer
  from ..context import ServiceContext
  from ..utils import LazyLoader
label_desc: Use image node_id 8 for calling the Server obj's underlying member method code with example usage: obj.configure_port(addr) without return types