code: def read_TREC(path, seed=1234):
      train_path = os.path.join(path, "TREC.train.all")
      test_path = os.path.join(path, "TREC.test.all")
      train_x, train_y = read_corpus(
          train_path, TREC=True, encoding="latin-1"
      )
      test_x, test_y = read_corpus(
          test_path, TREC=True, encoding="latin-1"
      )
      random.seed(seed)
      perm = list(range(len(train_x)))
      random.shuffle(perm)
      train_x = [train_x[i] for i in perm]
      train_y = [train_y[i] for i in perm]
      return train_x, train_y, test_x, test_y
  
imports: import gzip
  import os
  import sys
  import re
  import random
  import numpy
  import torch
label_desc: Use image node_id 7 for calling a global function with example usage: read_TREC(path, seed) and returns: train_x,  train_y,  test_x,  test_y