code: def GetTableView(cls, format_type, column_names=None, title=None):
      
      view_class = cls._TABLE_VIEW_FORMAT_CLASSES.get(format_type, None)
      if not view_class:
        raise ValueError('Unsupported format type: {0:s}'.format(format_type))
  
      return view_class(column_names=column_names, title=title)
docs: Retrieves a table view.
  
      Args:
        format_type (str): table view format type.
        column_names (Optional[list[str]]): column names.
        title (Optional[str]): title.
  
      Returns:
        BaseTableView: table view.
  
      Raises:
        ValueError: if the format type is not supported.