code: def ipython_dir(request):
      if shutil.which("sbatch") is None:
          pytest.skip("Requires slurm")
      with temporary_ipython_dir(prefix="/data/") as ipython_dir:
          yield ipython_dir
  
file_path: ipyparallel/ipyparallel/tests/test_slurm.py
imports: import shutil
  import pytest
  from traitlets.config import Config
  from .conftest import temporary_ipython_dir
  from .test_cluster import test_get_output
  from .test_cluster import test_restart_engines
  from .test_cluster import test_signal_engines
  from .test_cluster import test_start_stop_cluster
  from .test_cluster import test_to_from_dict
label_desc: Use image node_id 1 for calling a global function with example usage: ipython_dir(request) without return types