code: def _get_parser():
      parser = configargparse.ArgumentParser(
          config_file_parser_class=configargparse.YAMLConfigFileParser,
          description="OpenNMT-py REST Server",
      )
      parser.add_argument("--ip", type=str, default="0.0.0.0")
      parser.add_argument("--port", type=int, default="5000")
      parser.add_argument("--url_root", type=str, default="/translator")
      parser.add_argument("--debug", "-d", action="store_true")
      parser.add_argument(
          "--model_config",
          "-m",
          type=str,
          default="./available_models/conf.json",
      )
      return parser
  
file_path: OpenNMT-py/onmt/bin/server.py
imports: import configargparse
  from flask import Flask, jsonify, request
  from waitress import serve
  from onmt.translate import TranslationServer, ServerModelError
  import logging
  from logging.handlers import RotatingFileHandler
label_desc: Use image node_id 2 for calling a global function with example usage: _get_parser() and returns: parser