class_docstr: An async implementation of a gRPC server.
code: def options(self) -> grpc.aio.ChannelArgumentType:
      options: grpc.aio.ChannelArgumentType = []
  
      if sys.platform != "win32":
          # https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/grpc_types.h#L294
          # Eventhough GRPC_ARG_ALLOW_REUSEPORT is set to 1 by default, we want still
          # want to explicitly set it to 1 so that we can spawn multiple gRPC servers in
          # production settings.
          options.append(("grpc.so_reuseport", 1))
      if self.max_concurrent_streams:
          options.append(
              (
                  "grpc.max_concurrent_streams",
                  self.max_concurrent_streams,
              )
          )
      if self.enable_channelz:
          options.append(("grpc.enable_channelz", 1))
      if self.max_message_length:
          options.extend(
              (
                  # grpc.max_message_length this is a deprecated options, for backward compatibility
                  ("grpc.max_message_length", self.max_message_length),
                  (
                      "grpc.max_receive_message_length",
                      self.max_message_length,
                  ),
                  (
                      "grpc.max_send_message_length",
                      self.max_message_length,
                  ),
              )
          )
  
      return tuple(options)
  
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 2 for calling the Server obj's underlying member method code with example usage: obj.options() and returns: tuple