def parse_runner_params(exp_name: str) -> Tuple[dict, List[str]]:
    """Constructs the command-line arguments for ``train_*.py``."""
    parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter)
    parser.add_argument("--logdir", type=str, default=None)
    parser.add_argument("--engine", type=str, choices=list(E2E.keys()), default="e")
    args, unknown_args = parser.parse_known_args()
    args = vars(args)

    default_logdir = f"logs_{exp_name}_{args['engine']}".replace("-", "_")
    args["logdir"] = args["logdir"] or default_logdir

    return args, unknown_args
Constructs the command-line arguments for ``train_*.py``.
examples/engines/src.py