code: def test_saves_file():
      with tmpfile("html") as fn:
          with prof:
              get(dsk, "e")
          # Run just to see that it doesn't error
          prof.visualize(show=False, filename=fn)
  
          assert os.path.exists(fn)
          with open(fn) as f:
              assert "html" in f.read().lower()
  
imports: from __future__ import annotations
  import contextlib
  import os
  import warnings
  from operator import add, mul
  from timeit import default_timer
  import pytest
  from dask.diagnostics import CacheProfiler, Profiler, ResourceProfiler
  from dask.diagnostics.profile_visualize import BOKEH_VERSION
  from dask.threaded import get
  from dask.utils import apply, tmpfile
  from dask.utils_test import slowadd
label_desc: Use image node_id 15 for calling a global function with example usage: test_saves_file() without return types