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("--n-trials", type=int, default=None)
    parser.add_argument("--timeout", type=int, default=None)
    parser.add_argument("--n-jobs", type=int, default=1)
    utils.boolean_flag(parser, "gc-after-trial", default=False)
    utils.boolean_flag(parser, "show-progress-bar", default=False)

    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/tune.py