code: def test_missing_find_dataset_path(tmpdir):
      """
      Test find_dataset_path when the dataset does not exist
      """
      data_home = tmpdir.mkdir("fixtures")
  
      # When the data directory doesn't exist
      with pytest.raises(DatasetsError):
          find_dataset_path("foo", data_home=str(data_home))
  
      # When the data directory exists but no file is in the directory
      foo = data_home.mkdir("foo")
      with pytest.raises(DatasetsError):
          find_dataset_path("foo", data_home=str(data_home))
  
      # When the specified file doesn't exist
      fpath = foo.join("foo.csv")
      fpath.write("1,2,3")
      with pytest.raises(DatasetsError):
          find_dataset_path("foo", data_home=str(data_home), ext=".npz")
  
file_path: yellowbrick/tests/test_datasets/test_path.py
imports: import os
  import pytest
  import contextlib
  from yellowbrick.datasets.path import *
  from yellowbrick.exceptions import DatasetsError
label_desc: Use image node_id 6 for calling a global function with example usage: test_missing_find_dataset_path(tmpdir) without return types