class_docstr: The class of Gateway type, which is the metaclass of :class:`BaseGateway`.
docstr: # noqa: DAR101
  # noqa: DAR102
  
  :return: Gateway class
docstr_tok: ["#","noqa",":","DAR101","#","noqa",":","DAR102",":","return",":","Gateway","class"]
code: def __new__(cls, *args, **kwargs):
      """
      # noqa: DAR101
      # noqa: DAR102
  
      :return: Gateway class
      """
      _cls = super().__new__(cls, *args, **kwargs)
      return cls.register_class(_cls)
  
file_path: jina/jina/serve/runtimes/gateway/gateway.py
imports: from jina.jaml import JAMLCompatible
  from jina.serve.helper import store_init_kwargs, wrap_func
  from jina.serve.runtimes.servers import BaseServer
label_desc: Use image node_id 1 for calling the GatewayType obj's underlying member method code with example usage: obj.__new__(cls) and returns: cls