class_docstr: Build a Dataset object out of Instruction instance(s).
  This Reader uses either memory mapping or file descriptors (in-memory) on arrow files.
class_docstr_tok: ["Build","a","Dataset","object","out","of","Instruction","instance","(","s",")",".","This","Reader","uses","either","memory","mapping","or","file","descriptors","(","in-memory",")","on","arrow","files","."]
docstr: Read table from file.
  
  Args:
      filename (str): File name of the table.
      in_memory (bool, default=False): Whether to copy the data in-memory.
  
  Returns:
      pyarrow.Table
code: def read_table(filename, in_memory=False) -> Table:
      """
      Read table from file.
  
      Args:
          filename (str): File name of the table.
          in_memory (bool, default=False): Whether to copy the data in-memory.
  
      Returns:
          pyarrow.Table
      """
      table_cls = InMemoryTable if in_memory else MemoryMappedTable
      return table_cls.from_file(filename)
  
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 3 for calling the ArrowReader obj's underlying member method code with example usage: obj.read_table(filename, in_memory) and returns: table_cls