code: def process_stories(root_dir):
      stories = os.listdir(root_dir)
      examples = []
      cnt_words = []
      for i, f_name in enumerate(stories):
          if i % 100 == 0:
              print(i)
          with open(root_dir + f_name, "r") as f:
              text = f.readlines()
              # examples.append(text)
              cnt_words.append(len(" ".join(text).split(" ")))
              example_dict = {"article": [], "highlight": []}
              is_hightlight = False
              for line in text:
                  if line == "\n":
                      continue
                  if line == "@highlight\n":
                      is_hightlight = True
                      continue
                  if is_hightlight:
                      example_dict["highlight"].append([line.strip()])
                      is_hightlight = False
                  else:
                      example_dict["article"].append(line.strip())
  
              examples.append(example_dict)
  
      # print(sum(cnt_words)/len(cnt_words))
      return examples
  
label_desc: Use image node_id 1 for calling a global function with example usage: process_stories(root_dir) and returns: examples