docs: def _create_bigquery_parser():
    """ Create the parser for the %bigquery magics.
  
    Note that because we use the func default handler dispatch mechanism of argparse,
    our handlers can take only one argument which is the parsed args. So we must create closures
    for the handlers that bind the cell contents and thus must recreate this parser for each
    cell upon execution.
    """
    parser = datalab.utils.commands.CommandParser(prog='bigquery', description="""
  Execute various BigQuery-related operations. Use "%bigquery <command> -h"
  for help on a specific command.
    """)
  
    # This is a bit kludgy because we want to handle some line magics and some cell magics
    # with the bigquery command.
  
    # %%bigquery sample
    _add_command(parser, _create_sample_subparser, _sample_cell)
  
    # %%bigquery create
    _add_command(parser, _create_create_subparser, _create_cell)
  
    # %%bigquery delete
    _add_command(parser, _create_delete_subparser, _delete_cell)
  
    # %%bigquery dryrun
    _add_command(parser, _create_dry_run_subparser, _dryrun_cell)
  
    # %%bigquery udf
    _add_command(parser, _create_udf_subparser, _udf_cell, cell_required=True)
  
    # %%bigquery execute
    _add_command(parser, _create_execute_subparser, _execute_cell)
  
    # %%bigquery pipeline
    _add_command(parser, _create_pipeline_subparser, _pipeline_cell)
  
    # %bigquery table
    _add_command(parser, _create_table_subparser, _table_line, cell_prohibited=True)
  
    # %bigquery schema
    _add_command(parser, _create_schema_subparser, _schema_line, cell_prohibited=True)
  
    # %bigquery datasets
    _add_command(parser, _create_datasets_subparser, _datasets_line, cell_prohibited=True)
  
    # %bigquery tables
    _add_command(parser, _create_tables_subparser, _tables_line, cell_prohibited=True)
  
    # % bigquery extract
    _add_command(parser, _create_extract_subparser, _extract_line, cell_prohibited=True)
  
    # %bigquery load
    # TODO(gram): need some additional help, esp. around the option of specifying schema in
    # cell body and how schema infer may fail.
    _add_command(parser, _create_load_subparser, _load_cell)
    return parser