def read_symbol_table_dict(input_file,
                           restrict_to = ()):  # pytype: disable=annotation-type-mismatch
  """Read a dictionary of SymbolTable values from a file.

  Args:
    input_file: Filename string or FileLike object.
    restrict_to: If defined, a list of types to restrict to.

  Returns:
    A dictionary mapping type names to SymbolTable values.
  """
  symbol_dict = _read_numpy_item(input_file)
  return {
      type_name: symbol.create_from_dict(symbol_table_dict)
      for type_name, symbol_table_dict in symbol_dict.items()
      if not restrict_to or type_name in restrict_to
  }
Read a dictionary of SymbolTable values from a file.

  Args:
    input_file: Filename string or FileLike object.
    restrict_to: If defined, a list of types to restrict to.

  Returns:
    A dictionary mapping type names to SymbolTable values.
  
language/nql/nql/io.py