code: def write_to_file(filename, triples):
      with open(filename, "w") as wt:
          for t in triples:
              wt.write("{0} {1} {2}\n".format(t[0], t[1], t[2]))
  
imports: import codecs
  import pickle
  import time
  import os
  from datetime import datetime
  import random
  import numpy
  import math
  from multiprocessing import Process
  from utils.general import *
  from utils.data_helper import *
label_desc: Use image node_id 26 for calling a global function with example usage: write_to_file(filename, triples) without return types