code: def expansion_parser():
      """Creates and returns the argparse instance for the experiment config
      expansion app.
  
      """
  
      parser = argparse_flags.ArgumentParser(
          description="Experiment config expander. For documentation, visit https://github.com/google/caliban",
          prog="expansion",
      )
      parser.add_argument(
          "--version",
          action="version",
          version="%(prog)s {}".format(__version__),
      )
      parser.add_argument(
          "--pprint",
          action="store_true",
          help="Pretty-print the config to stdout.",
      )
      parser.add_argument(
          "--print_flags",
          action="store_true",
          help="Print the actual flags generated by each experiment in the expansion, \
  one per line.",
      )
      parser.add_argument(
          "experiment_config",
          type=ce.load_experiment_config,
          help="Path to an experiment config, or 'stdin' to read from stdin.",
      )
  
      return parser
  
file_path: caliban/caliban/expansion.py
imports: from __future__ import absolute_import, division, print_function
  import json
  import logging
  from typing import List
  from absl import app, logging
  from absl.flags import argparse_flags
  import caliban.config.experiment
  from caliban import __version__
label_desc: Use image node_id 1 for calling a global function with example usage: expansion_parser() and returns: parser