code: def fetch_data():
      def _fetch_data(datadir, dicoms):
          try:
              """Fetches some test DICOMs using datalad"""
              api.install(path=datadir, source=DICOM_DIR)
              data = os.path.join(datadir, dicoms)
              api.get(path=data, dataset=datadir)
          except IncompleteResultsError as exc:
              pytest.skip("Failed to fetch test data: %s" % str(exc))
          return data
  
      return _fetch_data
  
imports: import os
  import pytest
  import shutil
  from nipype.interfaces.dcm2nii import Dcm2niix
label_desc: Use image node_id 1 for calling a global function with example usage: fetch_data() and returns: _fetch_data, data