code: def init_threads(tf_session):
          
          coord = tf.train.Coordinator()
          threads = list()
          for qr in tf.get_collection(tf.GraphKeys.QUEUE_RUNNERS):
              threads.extend(qr.create_threads(tf_session, coord=coord, daemon=True, start=True))
          return threads, coord
docs: Starts threads running