code: def setup_module(module):
      """setup any state specific to the execution of the given module."""
      # Initialize notebooks and screenshots to empty directories
      shutil.rmtree(temp_notebooks_dir, ignore_errors=True)
      temp_notebooks_dir.mkdir(parents=True, exist_ok=True)
  
      shutil.rmtree(temp_screenshots_dir, ignore_errors=True)
      temp_screenshots_dir.mkdir(parents=True, exist_ok=True)
  
      shutil.rmtree(failure_output, ignore_errors=True)
      failure_output.mkdir(parents=True, exist_ok=True)
  
imports: from pathlib import Path
  import jupytext
  import io
  import tempfile
  from subprocess import Popen
  import pytest
  from selenium.webdriver import ActionChains
  from selenium import webdriver
  import time
  from io import BytesIO
  from skimage.io import imread
  from skimage.metrics import structural_similarity
  import shutil
  from tenacity import retry, wait, stop
  import os
  from flaky import flaky
  import json
  import platform
label_desc: Use image node_id 1 for calling a global function with example usage: setup_module(module) without return types