code: def test_get_dataset_filepath() -> None:
      name = "__ Test Dataset __"
      assert name not in datasets._NAMED_URLS
      datasets._NAMED_URLS[name] = "file://{}".format(
          Path(__file__).absolute()
      )
      with patch("requests.get") as req:
          req.return_value.content = b"blublu"
          filepath = datasets.get_dataset_filepath(name)
      assert filepath.exists()
      with filepath.open("r") as f:
          text = f.read()
      try:
          assert (
              "blublu" in text
          ), f"Found text:\n{text}"  # this is my file :)
      except AssertionError as e:
          raise e
      finally:
          filepath.unlink()
      np.testing.assert_raises(
          ValueError, datasets.get_dataset_filepath, "Bidule"
      )
      del datasets._NAMED_URLS[name]
      assert not filepath.exists()
      assert name not in datasets._NAMED_URLS
  
file_path: nevergrad/nevergrad/functions/mlda/test_datasets.py
imports: import tempfile
  import typing
  from pathlib import Path
  from unittest.mock import patch
  import pandas
  import numpy
  from ...common import testing
  from .None import datasets
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_dataset_filepath() without return types