code: def read_table(
      path,
      *,
      _intervals=None,
      _filter_intervals=False,
      _n_partitions=None,
      _assert_type=None,
      _load_refs=True,
      _create_row_uids=False,
  ) -> Table:
      """Read in a :class:`.Table` written with :meth:`.Table.write`.
  
      Parameters
      ----------
      path : :class:`str`
          File to read.
  
      Returns
      -------
      :class:`.Table`
      """
      if _load_refs:
          for rg_config in Env.backend().load_references_from_dataset(
              path
          ):
              hl.ReferenceGenome._from_config(rg_config)
  
      if _intervals is not None and _n_partitions is not None:
          raise ValueError(
              "'read_table' does not support both _intervals and _n_partitions"
          )
      tr = ir.TableNativeReader(path, _intervals, _filter_intervals)
      ht = Table(
          ir.TableRead(
              tr,
              False,
              drop_row_uids=not _create_row_uids,
              _assert_type=_assert_type,
          )
      )
  
      if _n_partitions:
          intervals = ht._calculate_new_partitions(_n_partitions)
          return read_table(
              path,
              _intervals=intervals,
              _assert_type=_assert_type,
              _load_refs=_load_refs,
              _create_row_uids=_create_row_uids,
          )
      return ht
  
imports: import os
  import re
  from collections import defaultdict
  import avro.schema
  from avro.datafile import DataFileReader
  from avro.io import DatumReader
  import hail
  from hail import ir
  from hail.expr import StructExpression, LocusExpression, expr_array, expr_float64, expr_str, expr_numeric, expr_call, expr_bool, expr_int32, to_expr, analyze
  from hail.expr.types import hail_type, tarray, tfloat64, tstr, tint32, tstruct, tcall, tbool, tint64, tfloat32
  from hail.genetics.reference_genome import reference_genome_type
  from hail.ir.utils import parse_type
  from hail.matrixtable import MatrixTable
  from hail.methods.misc import require_biallelic, require_row_key_variant, require_col_key_str
  from hail.table import Table
  from hail.typecheck import typecheck, nullable, oneof, dictof, anytype, sequenceof, enumeration, sized_tupleof, numeric, table_key_type, char
  from hail.utils import new_temp_file
  from hail.utils.deduplicate import deduplicate
  from hail.utils.java import Env, FatalError, jindexed_seq_args, warning
  from hail.utils.java import info
  from hail.utils.misc import wrap_to_list, plural
  from .import_lines_helpers import split_lines, should_remove_line
label_desc: Use image node_id 23 for calling a global function with example usage: read_table(path) and returns: ht, read_table