<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def GetTableView(cls, format_type, column_names=None, title=None):
 """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. """

    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)