class_docstr: ExportedApi is a collection of ExportedSymbols.
class_docstr_tok: ["ExportedApi","is","a","collection","of","ExportedSymbols","."]
docstr: Writes exports to filename.
docstr_tok: ["Writes","exports","to","filename","."]
code: def write(self, filename: str, **kwargs) -> None:
      """Writes exports to filename."""
      with open(filename, mode="w", encoding="utf-8") as f:
          json.dump(
              {
                  "docs": [d._asdict() for d in sorted(self.docs)],
                  "symbols": [
                      s._asdict() for s in sorted(self.symbols)
                  ],
              },
              f,
              **kwargs,
          )
  
imports: from collections.abc import Iterable, Sequence
  import json
  from typing import Any, NamedTuple
label_desc: Use image node_id 2 for calling the ExportedApi obj's underlying member method code with example usage: obj.write(filename) without return types