def parse_args():
    'Parse input arguments\n\n    Use --help to see a pretty description of the arguments\n    '
    if ('ipykernel' in sys.argv[0]):
        sys.argv = [sys.argv[0]]
    parser = argparse.ArgumentParser()
    parser.add_argument('-n', type=int, default=15, choices=[8, 15, 24, 35, 48, 63, 80], help='Number of tiles')
    parser.add_argument('--random_seed', '-s', type=int, default=1, help='Seed to use for RNGs')
    parser.add_argument('--macro_type', '-m', type=str, default='primitive', choices=['primitive', 'random', 'learned'], help='Type of macro_list to consider during search')
    parser.add_argument('--search_alg', type=str, default='gbfs', choices=['astar', 'gbfs', 'weighted_astar', 'bfws_r0', 'bfws_rg'], help='Search algorithm to run')
    parser.add_argument('--g_weight', type=float, default=None, help='Weight for g-score in weighted A*')
    parser.add_argument('--h_weight', type=float, default=None, help='Weight for h-score in weighted A*')
    parser.add_argument('--random_goal', '-r', action='store_true', default=False, help='Generate a random goal instead of the default solve configuration')
    parser.add_argument('--max_transitions', type=(lambda x: int(float(x))), default=500000.0, help='Maximum number of state transitions')
    parser.add_argument('--bfws_precision', type=int, default=3, help='The number of width values, w \\in {1,...,P}, to use when the search algorithm is best-first width search')
    return parser.parse_args()
Parse input arguments

Use --help to see a pretty description of the arguments
def parse_args():
    'Parse input arguments\n\n    Use --help to see a pretty description of the arguments\n    '
    if ('ipykernel' in sys.argv[0]):
        sys.argv = [sys.argv[0]]
    parser = argparse.ArgumentParser()
    parser.add_argument('-n', type=int, default=15, choices=[8, 15, 24, 35, 48, 63, 80], help='Number of tiles')
    parser.add_argument('--random_seed', '-s', type=int, default=1, help='Seed to use for RNGs')
    parser.add_argument('--macro_type', '-m', type=str, default='primitive', choices=['primitive', 'random', 'learned'], help='Type of macro_list to consider during search')
    parser.add_argument('--search_alg', type=str, default='gbfs', choices=['astar', 'gbfs', 'weighted_astar', 'bfws_r0', 'bfws_rg'], help='Search algorithm to run')
    parser.add_argument('--g_weight', type=float, default=None, help='Weight for g-score in weighted A*')
    parser.add_argument('--h_weight', type=float, default=None, help='Weight for h-score in weighted A*')
    parser.add_argument('--random_goal', '-r', action='store_true', default=False, help='Generate a random goal instead of the default solve configuration')
    parser.add_argument('--max_transitions', type=(lambda x: int(float(x))), default=500000.0, help='Maximum number of state transitions')
    parser.add_argument('--bfws_precision', type=int, default=3, help='The number of width values, w \\in {1,...,P}, to use when the search algorithm is best-first width search')
    return parser.parse_args()