class_docstr: Build a Dataset object out of Instruction instance(s).
class_docstr_tok: ["Build","a","Dataset","object","out","of","Instruction","instance","(","s",")","."]
docstr: Returns Dataset instance(s).
  
  Args:
      name (str): name of the dataset.
      instructions (ReadInstruction): instructions to read.
          Instruction can be string and will then be passed to the Instruction
          constructor as it.
      split_infos (list of SplitInfo proto): the available splits for dataset.
      in_memory (bool, default False): Whether to copy the data in-memory.
  
  Returns:
       kwargs to build a single Dataset instance.
code: def read(
      self,
      name,
      instructions,
      split_infos,
      in_memory=False,
  ):
      """Returns Dataset instance(s).
  
      Args:
          name (str): name of the dataset.
          instructions (ReadInstruction): instructions to read.
              Instruction can be string and will then be passed to the Instruction
              constructor as it.
          split_infos (list of SplitInfo proto): the available splits for dataset.
          in_memory (bool, default False): Whether to copy the data in-memory.
  
      Returns:
           kwargs to build a single Dataset instance.
      """
  
      files = self.get_file_instructions(
          name, instructions, split_infos
      )
      if not files:
          msg = f'Instruction "{instructions}" corresponds to no data!'
          raise ValueError(msg)
      return self.read_files(
          files=files,
          original_instructions=instructions,
          in_memory=in_memory,
      )
  
imports: import copy
  import math
  import os
  import re
  import shutil
  from dataclasses import dataclass
  from pathlib import Path
  from typing import TYPE_CHECKING, List, Optional, Union
  import pyarrow
  import pyarrow.parquet
  from .download.download_config import DownloadConfig
  from .naming import _split_re, filenames_for_dataset_split
  from .table import InMemoryTable, MemoryMappedTable, Table, concat_tables
  from .utils import logging
  from .utils.file_utils import cached_path
label_desc: Use image node_id 5 for calling the BaseReader obj's underlying member method code with example usage: obj.read(name, instructions, split_infos, in_memory) and returns: self