def METHOD_NAME(args):
    parser = argparse.ArgumentParser('Benchmark a serializer.')
    parser.add_argument(
        '--num_gates', default=100, type=int, help='Number of gates at the bottom nesting layer.'
    )
    parser.add_argument(
        '--nesting_depth',
        default=1,
        type=int,
        help='Depth of nested subcircuits. Total gate count will be 2^nesting_depth * num_gates.',
    )
    parser.add_argument(
        '--num_repetitions', default=10, type=int, help='Number of times to repeat serialization.'
    )
    return vars(parser.parse_args(args))