def parse_args(args: Iterable = None, namespace: argparse.Namespace = None):
    """Parses the command line arguments and returns arguments and config."""
    parser = argparse.ArgumentParser()
    parser.add_argument(
        "--config",
        "--configs",
        "-C",
        nargs="+",
        default=("config.yml",),
        type=str,
        help="path to config/configs",
        metavar="CONFIG_PATH",
        dest="configs",
    )

    utils.boolean_flag(
        parser,
        "deterministic",
        default=None,
        help="Deterministic mode if running in CuDNN backend",
    )
    utils.boolean_flag(parser, "benchmark", default=None, help="Use CuDNN benchmark")

    args, unknown_args = parser.parse_known_args(args=args, namespace=namespace)
    return vars(args), unknown_args
Parses the command line arguments and returns arguments and config.
catalyst/contrib/scripts/run.py