code: def check_story(story_name, paragraphs):
      h2o.remove_all()
  
      h2o.log_and_echo(
          "------------------------------------------------------------"
      )
      h2o.log_and_echo("")
      h2o.log_and_echo("CHECKING: {0}".format(story_name))
      h2o.log_and_echo("")
      h2o.log_and_echo(
          "------------------------------------------------------------"
      )
  
      # 1. Combine the related, individual code paragraphs into a single, coherent python story
      story = []
      for p in paragraphs:
          with open(p, "r") as f:
              story = story + f.readlines()
  
      # 2. Execute the story
  
      # first, remove any h2o.init calls
      remove_lines = []
      for idx, l in enumerate(story):
          if "h2o.init" in l:
              remove_lines.append(idx)
      story = [i for j, i in enumerate(story) if j not in remove_lines]
  
      # write the story that will be executed to the results directory for future reference
      story_file = os.path.join(
          results_dir(), test_name() + "." + story_name + ".code"
      )
      with open(story_file, "w") as f:
          f.writelines(story)
  
      # run it
      with open(story_file, "r") as s:
          booklet = s.read()
      booklet_c = compile(booklet, "<string>", "exec")
      p = {}
      exec(booklet_c, p)
  
imports: import sys, os
  import h2o
label_desc: Use image node_id 4 for calling a global function with example usage: check_story(story_name, paragraphs) without return types