code: def test_visualize(tmpdir):
      pytest.importorskip("graphviz")
      da = pytest.importorskip("dask.array")
      fn = str(tmpdir)
      a = da.ones(10, chunks=(5,))
      b = a + 1
      c = a + 2
      d = b + c
      d.dask.visualize(fn)
      assert os.path.exists(fn)
  
imports: from __future__ import annotations
  import os
  import threading
  import xml.etree.ElementTree
  from collections.abc import Set
  from concurrent.futures import ThreadPoolExecutor
  import pytest
  import dask
  from dask.blockwise import Blockwise, blockwise_token
  from dask.highlevelgraph import HighLevelGraph, Layer, MaterializedLayer, to_graphviz
  from dask.utils_test import inc
label_desc: Use image node_id 1 for calling a global function with example usage: test_visualize(tmpdir) without return types