def wikisql_table_schemas_map(schema):
  """Returns map of database id to a list of TableSchema tuples."""
  # The format of the schema json object is documented here:
  # https://github.com/taoyds/wikisql#tables
  return {
      db_name: wikisql_db_to_table_tuples(db_name, db)
      for db_name, db in schema.items()
  }
Returns map of database id to a list of TableSchema tuples.
language/xsp/data_preprocessing/abstract_sql_converters.py