code: def read_corpus(path, num_test_symbols=5000000):
      raw_data = open(path).read()
      raw_data = np.fromstring(raw_data, dtype=np.uint8)
      unique, data = np.unique(raw_data, return_inverse=True)
      train_data = data[: -2 * num_test_symbols]
      valid_data = data[-2 * num_test_symbols : -num_test_symbols]
      test_data = data[-num_test_symbols:]
      return train_data, valid_data, test_data, unique
  
imports: import sys
  import os
  import argparse
  import time
  import random
  import math
  import numpy
  import torch
  import torch.nn
  import torch.optim
  import torch.nn.functional
  from torch.autograd import Variable
  from tensorboardX import SummaryWriter
  import sru
label_desc: Use image node_id 1 for calling a global function with example usage: read_corpus(path, num_test_symbols) and returns: train_data,  valid_data,  test_data,  unique