code: def check_num_stories(stories_dir, num_expected):
      num_stories = len(os.listdir(stories_dir))
      if num_stories != num_expected:
          raise Exception(
              "stories directory {} contains {} files but should contain {}".format(
                  stories_dir, num_stories, num_expected
              )
          )
  
file_path: delta/egs/cnn_dailymail/seq2seq/v1/local/make_datafiles.py
imports: import collections
  import hashlib
  import os
  import subprocess
  import sys
  from absl import logging
label_desc: Use image node_id 8 for calling a global function with example usage: check_num_stories(stories_dir, num_expected) without return types