code: def test_failure(path=None):
      # non-existing dataset
      with assert_raises(ValueError):
          export_archive(dataset=Dataset("nowhere"))
  
file_path: datalad/datalad/local/tests/test_export_archive.py
imports: import os
  import tarfile
  import time
  from os.path import isabs
  from os.path import join
  from datalad.api import Dataset, export_archive
  from datalad.tests.utils_pytest import assert_equal, assert_false, assert_not_equal, assert_raises, assert_result_count, assert_status, assert_true, ok_startswith, with_tree
  from datalad.utils import chpwd, md5sum
label_desc: Use image node_id 1 for calling a global function with example usage: test_failure(path) without return types