code: def to_frame(self, ctx, table):
      if self._input_format != "dense":
          raise ValueError(
              "Only support dense input format in this version."
          )
  
      return self._dense_format_to_frame(ctx, table)
  
imports: import functools
  import pandas
  from typing import Union
  from .conf.default_config import DATAFRAME_BLOCK_ROW_SIZE
  from .entity import types
  from ._dataframe import DataFrame
  from .manager import DataManager
  from fate.arch.trace import auto_trace
label_desc: Use image node_id 3 for calling the TableReader obj's underlying member method code with example usage: obj.to_frame(ctx, table) and returns: self