class_docstr: Runtime to make sure that a server can asynchronously run inside a new asynchronous loop. It will make sure that the server is run forever while handling the TERMINATE signals
  to be received by the orchestrator to shutdown the server and its resources.
class_docstr_tok: ["Runtime","to","make","sure","that","a","server","can","asynchronously","run","inside","a","new","asynchronous","loop",".","It","will","make","sure","that","the","server","is","run","forever","while","handling","the","TERMINATE","signals","to","be","received","by","the","orchestrator","to","shutdown","the","server","and","its","resources","."]
code: def _send_telemetry_event(self, event, extra_kwargs=None):
      gateway_kwargs = {}
      if self.req_handler_cls.__name__ == "WorkerRequestHandler":
          runtime_cls_name = "WorkerRuntime"
      elif self.req_handler_cls.__name__ == "HeaderRequestHandler":
          runtime_cls_name = "HeadRuntime"
      else:
          runtime_cls_name = self.server.__class__.__name__
          gateway_kwargs[
              "is_custom_gateway"
          ] = self.server.__class__ not in [
              CompositeGateway,
              GRPCGateway,
              HTTPGateway,
              WebSocketGateway,
          ]
          gateway_kwargs["protocol"] = self.args.protocol
  
      extra_kwargs = extra_kwargs or {}
  
      send_telemetry_event(
          event=event,
          obj_cls_name=runtime_cls_name,
          entity_id=self._entity_id,
          **gateway_kwargs,
          **extra_kwargs,
      )
  
imports: import argparse
  import asyncio
  import signal
  import time
  from typing import TYPE_CHECKING, Optional, Union
  from jina.constants import __windows__
  from jina.excepts import PortAlreadyUsed, RuntimeTerminated
  from jina.helper import ArgNamespace, is_port_free, random_ports, send_telemetry_event
  from jina.logging.logger import JinaLogger
  from jina.parsers import set_gateway_parser
  from jina.parsers.helper import _set_gateway_uses
  from jina.serve.runtimes.gateway.composite import CompositeGateway
  from jina.serve.runtimes.gateway.gateway import BaseGateway
  from jina.serve.runtimes.gateway.grpc import GRPCGateway
  from jina.serve.runtimes.gateway.http import HTTPGateway
  from jina.serve.runtimes.gateway.websocket import WebSocketGateway
  from jina.serve.runtimes.servers import BaseServer
label_desc: Use image node_id 6 for calling the AsyncNewLoopRuntime obj's underlying member method code with example usage: obj._send_telemetry_event(event, extra_kwargs) without return types