code: def mixin_gateway_parser(parser):
      """Add the options for remote expose at the Gateway
      :param parser: the parser
      """
      gp = add_arg_group(parser, title="Gateway")
      _add_host(gp)
      _add_proxy(gp)
  
      gp.add_argument(
          "--uses",
          type=str,
          default=None,
          # TODO: add Jina Hub Gateway
          help="""
          The config of the gateway, it could be one of the followings:
          * the string literal of an Gateway class name
          * a Gateway YAML file (.yml, .yaml, .jaml)
          * a docker image (must start with `docker://`)
          * the string literal of a YAML config (must start with `!` or `jtype: `)
          * the string literal of a JSON config
  
          When use it under Python, one can use the following values additionally:
          - a Python dict that represents the config
          - a text file stream has `.read()` interface
          """,
      )
  
      gp.add_argument(
          "--uses-with",
          action=KVAppendAction,
          metavar="KEY: VALUE",
          nargs="*",
          help="""
      Dictionary of keyword arguments that will override the `with` configuration in `uses`
      """,
      )
  
      gp.add_argument(
          "--py-modules",
          type=str,
          nargs="*",
          metavar="PATH",
          help="""
  The customized python modules need to be imported before loading the gateway
  
  Note that the recommended way is to only import a single module - a simple python file, if your
  gateway can be defined in a single file, or an ``__init__.py`` file if you have multiple files,
  which should be structured as a python package.
  """,
      )
  
      gp.add_argument(
          "--replicas",
          type=int,
          default=1,
          help="The number of replicas of the Gateway. This replicas will only be applied when converted into Kubernetes YAML",
      )
  
      mixin_base_runtime_parser(gp)
      mixin_grpc_channel_options_parser(gp)
      mixin_gateway_streamer_parser(gp)
  
file_path: jina/jina/parsers/orchestrate/runtimes/remote.py
imports: from jina.constants import __default_host__
  from jina.parsers.helper import CastHostAction, KVAppendAction, add_arg_group
  from jina.parsers.orchestrate.runtimes.grpc_channel import mixin_grpc_channel_options_parser
  from jina.parsers.orchestrate.runtimes.runtime import mixin_base_runtime_parser
label_desc: Use image node_id 4 for calling a global function with example usage: mixin_gateway_parser(parser) without return types