code: def write_tfrecord(sequences, fp):
      with tf.io.TFRecordWriter(fp) as writer:
          for seq in sequences:
              write_to_file(writer, seq)
  
imports: import argparse
  import os
  import re
  import random
  from pathlib import Path
  from typing import List
  import ftfy
  import tensorflow
  from lm_dataformat import Reader
  from transformers import GPT2TokenizerFast
  from tqdm import tqdm
label_desc: Use image node_id 6 for calling a global function with example usage: write_tfrecord(sequences, fp) without return types