code: def write_clusters_to_file(
      clusters: Clusters, topic_id: str, file_obj
  ) -> None:
      """
      Write the clusters to a text file (for experiments or evaluation using
          coreference scorer (v8.01))
      Args:
          clusters: the cluster to write
          topic_id:
          file_obj: file object
      """
      i = 0
      file_obj.write("Topic - " + topic_id + "\n")
      for cluster in clusters.clusters_list:
          i += 1
          file_obj.write("cluster #" + str(i) + "\n")
          mentions_list = []
          for mention in cluster.mentions:
              mentions_list.append(
                  (mention.tokens_str, mention.predicted_coref_chain)
              )
          file_obj.write(str(mentions_list) + "\n")
  
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 1 for calling a global function with example usage: write_clusters_to_file(clusters, topic_id, file_obj) without return types