def spider_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/spider#tables
  return {db['db_id']: spider_db_to_table_tuples(db) for db in schema}
Returns map of database id to a list of TableSchema tuples.
language/xsp/data_preprocessing/abstract_sql_converters.py