code: def write_topics(topics_list: List[Topic], output) -> None:
      output.write("#begin document (ECB+/ecbplus_all); part 000\n")
      for topic in topics_list:
          for mention in topic.mentions:
              output.write(
                  "ECB+/ecbplus_all\t"
                  + "("
                  + str(mention.predicted_coref_chain)
                  + ")\n"
              )
      output.write("#end document")
  
file_path: nlp-architect/nlp_architect/models/cross_doc_coref/system/cdc_utils.py
imports: import logging
  import os
  from typing import List
  from nlp_architect.common.cdc.cluster import Clusters
  from nlp_architect.common.cdc.mention_data import MentionData
  from nlp_architect.common.cdc.topics import Topic
  from nlp_architect.utils.string_utils import StringUtils
label_desc: Use image node_id 7 for calling a global function with example usage: write_topics(topics_list, output) without return types