code: def __init__(self, file_path, mode="rb+"):
      self.file_path = file_path
      dir_name = os.path.dirname(file_path)
      if dir_name:
          os.makedirs(dir_name, exist_ok=True)
  
      if not os.path.exists(file_path):
          Path(file_path).touch()
  
      self.fh = open(self.file_path, mode)
  
imports: import os
  import zstandard
  import json
  import jsonlines
  import io
  import datetime
  import mmap
  import tqdm
  from pathlib import Path
label_desc: Use image node_id 1 to create a new TextArchive object  with example: obj = TextArchive(file_path, mode)