code: def read_text_line(path, num_token=1000):
      # For simplicity, we only keep letters.
      whitelist = set(
          ".!?abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ"
      )
  
      with open(path, "r") as f:
          line_itr = 0
          for line in f.readlines():
              line_itr = line_itr + 1
              if line_itr % 10 == 0:
                  print("line: " + str(line_itr))
              for i in range(0, len(line), num_token):
                  cut_line = line[i : min(i + 1000, len(line))]
                  cut_line = "".join(
                      filter(whitelist.__contains__, cut_line)
                  )
                  yield cut_line
  
              if line_itr == 1000:
                  break
  
imports: import os
  import urllib.request
label_desc: Use image node_id 2 for calling a global function with example usage: read_text_line(path, num_token) without return types