class_docstr: Attributes:
      : can be one of the following based on the query type:
          TableInfo: expression of table name and database name,
          TableValuedExpression: lateral function calls
          SelectStatement: select statement in case of nested queries,
          JoinNode: join node in case of join queries
      sample_freq: sampling frequency for the table reference
class_docstr_tok: ["Attributes",":",":","can","be","one","of","the","following","based","on","the","query","type",":","TableInfo",":","expression","of","table","name","and","database","name",",","TableValuedExpression",":","lateral","function","calls","SelectStatement",":","select","statement","in","case","of","nested","queries",",","JoinNode",":","join","node","in","case","of","join","queries","sample_freq",":","sampling","frequency","for","the","table","reference"]
code: def __init__(
      self,
      table: Union[
          TableInfo, TableValuedExpression, SelectStatement, JoinNode
      ],
      alias: Alias = None,
      sample_freq: float = None,
      sample_type: str = None,
      get_audio: bool = False,
      get_video: bool = False,
      chunk_params: dict = {},
  ):
      # clean up so that we can support arbitrary new attributes
      self._ref_handle = table
      self._sample_freq = sample_freq
      self._sample_type = sample_type
      self._get_audio = get_audio
      self._get_video = get_video
  
      # related to DOCUMENT tables
      # chunk_size, chunk_overlap
      self.chunk_params = chunk_params
      # Alias generation must happen after ref handle is initialized
      self.alias = alias or self.generate_alias()
  
imports: from __future__ import annotations
  from typing import Union
  from evadb.expression.abstract_expression import AbstractExpression
  from evadb.expression.function_expression import FunctionExpression
  from evadb.parser.alias import Alias
  from evadb.parser.select_statement import SelectStatement
  from evadb.parser.types import JoinType
label_desc: Use image node_id 1 to create a new TableRef object  with example: obj = TableRef(table, alias, sample_freq, sample_type, get_audio, get_video, chunk_params)