docstr: A list of the Dataset source fragments or pieces with absolute
  file paths.
  
  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_fragments',
  ...                     partition_cols=['year'])
  >>> dataset = pq.ParquetDataset('dataset_v2_fragments/')
  
  List the fragments:
  
  >>> dataset.fragments
  [<pyarrow.dataset.ParquetFileFragment path=dataset_v2_fragments/...
docstr_tok: ["A","list","of","the","Dataset","source","fragments","or","pieces","with","absolute","file","paths",".","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_fragments","'",",","...","partition_cols=","[","'year","'","]",")",">",">",">","dataset","=","pq.ParquetDataset","(","'dataset_v2_fragments\/","'",")","List","the","fragments",":",">",">",">","dataset.fragments","[","<","pyarrow.dataset.ParquetFileFragment","path=dataset_v2_fragments\/","..."]
code: def fragments(self):
      """
      A list of the Dataset source fragments or pieces with absolute
      file paths.
  
      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_fragments',
      ...                     partition_cols=['year'])
      >>> dataset = pq.ParquetDataset('dataset_v2_fragments/')
  
      List the fragments:
  
      >>> dataset.fragments
      [<pyarrow.dataset.ParquetFileFragment path=dataset_v2_fragments/...
      """
      return list(self._dataset.get_fragments())
  
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 8 for calling the ParquetDataset obj's underlying member method code with example usage: obj.fragments() and returns: list