code: def set_export_parser(parser=None):
      """Set the parser for exporting
      :param parser: the parser configure
  
      :return: the parser
      """
      if not parser:
          parser = set_base_parser()
  
      spp = parser.add_subparsers(
          dest="export",
          description="use `%(prog)-8s [sub-command] --help` "
          "to get detailed information about each sub-command",
          required=True,
      )
  
      set_export_flowchart_parser(
          spp.add_parser(
              "flowchart",
              help="Export a Flow YAML file to a flowchart",
              formatter_class=_chf,
          )
      )
  
      set_export_k8s_parser(
          spp.add_parser(
              "kubernetes",
              help="Export a Flow YAML file to a Kubernetes YAML bundle",
              formatter_class=_chf,
          )
      )
  
      set_export_docker_compose_parser(
          spp.add_parser(
              "docker-compose",
              help="Export a Flow YAML file to a Docker Compose YAML file",
              formatter_class=_chf,
          )
      )
  
      set_export_schema_parser(
          spp.add_parser(
              "schema",
              help="Export Jina Executor & Flow API to JSONSchema files",
              formatter_class=_chf,
          )
      )
  
      return parser
  
file_path: jina/jina/parsers/export.py
imports: from jina.parsers.base import set_base_parser
  from jina.parsers.helper import _chf
label_desc: Use image node_id 1 for calling a global function with example usage: set_export_parser(parser) and returns: parser