code: def test_find_dataset_path(tmpdir):
      """
      Test find_dataset_path with a specified data_home
      """
  
      # Create the dataset
      data_home = tmpdir.mkdir("fixtures")
      foo = data_home.mkdir("foo")
  
      # Test the default lookup of foo/foo.csv.gz
      fpath = foo.join("foo.csv.gz")
      fpath.write("1,2,3")
      assert find_dataset_path("foo", data_home=data_home) == fpath
  
      # Test the extension based lookup of foo/foo.npz
      fpath = foo.join("foo.npz")
      fpath.write("1234")
      assert (
          find_dataset_path("foo", data_home=data_home, ext=".npz")
          == fpath
      )
  
      # Test the fname based lookup of foo/data.txt
      fpath = foo.join("data.txt")
      fpath.write("there is data in this file")
      assert (
          find_dataset_path(
              "foo", data_home=data_home, fname="data.txt"
          )
          == fpath
      )
  
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 5 for calling a global function with example usage: test_find_dataset_path(tmpdir) without return types