old_contents: #!/usr/bin/env python
  
  
  import os
  import shutil
  import sys
  
  
  if not os.environ.get("TEST_NOTEBOOKS"):
      sys.exit(0)
  
  for each in list(sys.argv[1:]) + [
      "data.tif",
      "data.h5",
      "data_traces.h5",
      "data_rois.h5",
      "data.zarr",
      "data_trim.zarr",
      "data_dn.zarr",
      "data_reg.zarr",
      "data_sub.zarr",
      "data_f_f0.zarr",
      "data_wt.zarr",
      "data_norm.zarr",
      "data_dict.zarr",
      "data_post.zarr",
      "data_traces.zarr",
      "data_rois.zarr",
      "data_proj.zarr",
      "data_proj.html",
      "dask-worker-space"]:
      if os.path.isfile(each):
          os.remove(each)
      elif os.path.isdir(each):
          shutil.rmtree(each)
  
new_contents: #!/usr/bin/env python
  
  
  import os
  import shutil
  import sys
  
  
  if not os.environ.get("TEST_NOTEBOOKS"):
      sys.exit(0)
  
  for each in list(sys.argv[1:]) + [
      "data.tif",
      "data.h5",
      "data_traces.h5",
      "data_rois.h5",
      "data.zarr",
      "data_proj.html",
      "dask-worker-space"]:
      if os.path.isfile(each):
          os.remove(each)
      elif os.path.isdir(each):
          shutil.rmtree(each)
  
subject: Update teardown function