code: def test_xls_get_data() -> None:
      with tempfile.TemporaryDirectory() as tmp:
          # create an example file
          filepath = Path(tmp) / "example.xls"
          df = pd.DataFrame(columns=["a", "b"], data=[[1, 2], [3, 4]])
          df.to_excel(filepath, index=False)
          # get the output
          with patch(
              "nevergrad.functions.mlda.datasets.get_dataset_filepath"
          ) as path_getter:
              path_getter.return_value = filepath
              output = datasets.get_data("Employees")
      np.testing.assert_array_equal(output, df)
  
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 5 for calling a global function with example usage: test_xls_get_data() without return types