code: def test_tutorial_tested():
      """
      Make sure that every tutorial that isn't in the whitelist
      has been added to the tutorial test file
      """
      tutorial_test_file = os.path.join(
          os.path.dirname(__file__), "test_tutorials.py"
      )
      f = open(tutorial_test_file, "r")
      tutorial_test_text = "\n".join(f.readlines())
      tutorial_path = os.path.join(
          os.path.dirname(__file__), "..", "..", "docs", "tutorials"
      )
      tutorials = glob.glob(os.path.join(tutorial_path, "**", "*.md"))
  
      tested_tutorials = set(
          re.findall(
              r"assert _test_tutorial_nb\('(.*)'\)", tutorial_test_text
          )
      )
      for tutorial in tutorials:
          friendly_name = "/".join(tutorial.split("/")[-2:]).split(".")[
              0
          ]
          if (
              friendly_name not in tested_tutorials
              and friendly_name + ".md" not in whitelist_set
          ):
              assert (
                  False
              ), "{} has not been added to the tests/tutorials/test_tutorials.py test_suite".format(
                  friendly_name
              )
  
imports: import glob
  import os
  import re
label_desc: Use image node_id 2 for calling a global function with example usage: test_tutorial_tested() without return types