code: func MockTableInfo(ctx sessionctx.Context, stmt *ast.CreateTableStmt, tableID int64) (*model.TableInfo, error) {
  	cols, newConstraints, err := buildColumnsAndConstraints(ctx, stmt.Cols, stmt.Constraints, "", "")
  	if err != nil {
  		return nil, errors.Trace(err)
  	}
  	tbl, err := buildTableInfo(ctx, nil, stmt.Table.Name, cols, newConstraints)
  	if err != nil {
  		return nil, errors.Trace(err)
  	}
  	tbl.ID = tableID
  
  	// The specified charset will be handled in handleTableOptions
  	if err = handleTableOptions(stmt.Options, tbl); err != nil {
  		return nil, errors.Trace(err)
  	}
  
  	if err = resolveDefaultTableCharsetAndCollation(tbl, ""); err != nil {
  		return nil, errors.Trace(err)
  	}
  
  	return tbl, nil
  }
docs: // MockTableInfo mocks a table info by create table stmt ast and a specified table id.