code: def test_get_data(
      name: str, text: str, expected: tp.List[tp.List[float]]
  ) -> None:
      with tempfile.TemporaryDirectory() as tmp:
          # create an example file
          filepath = Path(tmp) / "example.txt"
          with filepath.open("w") as f:
              f.write(text)
          # get the output
          with patch(
              "nevergrad.functions.mlda.datasets.get_dataset_filepath"
          ) as path_getter:
              path_getter.return_value = filepath
              output = datasets.get_data(name)
      np.testing.assert_array_equal(output, expected)
  
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 2 for calling a global function with example usage: test_get_data(name, text, expected) without return types