code: def test_io_fetch():
      fetch_flow = FetchFlow()
      with TemporaryDirectory() as out_dir:
          fetch_flow.run(["bundle_fa_hcp"])
          npt.assert_equal(
              os.path.isdir(os.path.join(dipy_home, "bundle_fa_hcp")),
              True,
          )
  
          fetch_flow.run(["bundle_fa_hcp"], out_dir=out_dir)
          npt.assert_equal(
              os.path.isdir(os.path.join(out_dir, "bundle_fa_hcp")),
              True,
          )
  
file_path: dipy/dipy/workflows/tests/test_io.py
imports: import logging
  import os
  from tempfile import mkstemp, TemporaryDirectory
  import numpy
  import numpy.testing
  from dipy.data import get_fnames
  from dipy.data.fetcher import dipy_home
  from dipy.io.image import load_nifti, save_nifti
  from dipy.io.streamline import load_tractogram
  from dipy.testing import assert_true
  from dipy.reconst.shm import convert_sh_descoteaux_tournier
  from dipy.workflows.io import IoInfoFlow, FetchFlow, SplitFlow, ConcatenateTractogramFlow, ConvertSHFlow, ConvertTractogramFlow
label_desc: Use image node_id 2 for calling a global function with example usage: test_io_fetch() without return types