def serialize_dictionaries(self,
                             output_file,
                             restrict_to = None):
    """Saves all symbol tables to a file preserving their ids.

    Args:
      output_file: Filename string or FileLike object.
      restrict_to: If defined, a list of types to restrict to.
    """
    io.write_symbol_table_dict(output_file, self._symtab, restrict_to)
Saves all symbol tables to a file preserving their ids.

    Args:
      output_file: Filename string or FileLike object.
      restrict_to: If defined, a list of types to restrict to.
    
language/nql/nql/__init__.py