docstr: Schema of the Dataset.
  
  Examples
  --------
  Generate an example dataset:
  
  >>> import pyarrow as pa
  >>> table = pa.table({'year': [2020, 2022, 2021, 2022, 2019, 2021],
  ...                   'n_legs': [2, 2, 4, 4, 5, 100],
  ...                   'animal': ["Flamingo", "Parrot", "Dog", "Horse",
  ...                              "Brittle stars", "Centipede"]})
  >>> import pyarrow.parquet as pq
  >>> pq.write_to_dataset(table, root_path='dataset_v2_schema',
  ...                     partition_cols=['year'])
  >>> dataset = pq.ParquetDataset('dataset_v2_schema/')
  
  Read the schema:
  
  >>> dataset.schema
  n_legs: int64
  animal: string
  year: dictionary<values=int32, indices=int32, ordered=0>
docstr_tok: ["Schema","of","the","Dataset",".","Examples","--","--","--","--","Generate","an","example","dataset",":",">",">",">","import","pyarrow","as","pa",">",">",">","table","=","pa.table","(","{","'year","'",":","[","2020",",","2022",",","2021",",","2022",",","2019",",","2021","]",",","...","'n_legs","'",":","[","2",",","2",",","4",",","4",",","5",",","100","]",",","...","'animal","'",":","[","``","Flamingo","''",",","``","Parrot","''",",","``","Dog","''",",","``","Horse","''",",","...","``","Brittle","stars","''",",","``","Centipede","''","]","}",")",">",">",">","import","pyarrow.parquet","as","pq",">",">",">","pq.write_to_dataset","(","table",",","root_path='dataset_v2_schema","'",",","...","partition_cols=","[","'year","'","]",")",">",">",">","dataset","=","pq.ParquetDataset","(","'dataset_v2_schema\/","'",")","Read","the","schema",":",">",">",">","dataset.schema","n_legs",":","int64","animal",":","string","year",":","dictionary","<","values=int32",",","indices=int32",",","ordered=0",">"]
code: def schema(self):
      """
      Schema of the Dataset.
  
      Examples
      --------
      Generate an example dataset:
  
      >>> import pyarrow as pa
      >>> table = pa.table({'year': [2020, 2022, 2021, 2022, 2019, 2021],
      ...                   'n_legs': [2, 2, 4, 4, 5, 100],
      ...                   'animal': ["Flamingo", "Parrot", "Dog", "Horse",
      ...                              "Brittle stars", "Centipede"]})
      >>> import pyarrow.parquet as pq
      >>> pq.write_to_dataset(table, root_path='dataset_v2_schema',
      ...                     partition_cols=['year'])
      >>> dataset = pq.ParquetDataset('dataset_v2_schema/')
  
      Read the schema:
  
      >>> dataset.schema
      n_legs: int64
      animal: string
      year: dictionary<values=int32, indices=int32, ordered=0>
      """
      return self._dataset.schema
  
imports: from collections import defaultdict
  from contextlib import nullcontext
  from functools import reduce
  import inspect
  import json
  import os
  import re
  import operator
  import warnings
  import pyarrow
  from pyarrow._parquet import ParquetReader, Statistics, FileMetaData, RowGroupMetaData, ColumnChunkMetaData, ParquetSchema, ColumnSchema, ParquetLogicalType, FileEncryptionProperties, FileDecryptionProperties, SortingColumn
  from pyarrow.fs import LocalFileSystem, FileSystem, FileType, _resolve_filesystem_and_path, _ensure_filesystem
  from pyarrow import filesystem
  from pyarrow.util import guid, _is_path_like, _stringify_path, _deprecate_api
label_desc: Use image node_id 4 for calling the ParquetDataset obj's underlying member method code with example usage: obj.schema() and returns: self