code: def test_sammon_mapping() -> None:
      name = "Virus"  # employee is not available anymore
      data = (
          np.arange(6).reshape(3, 2)
          if name == "Virus"
          else pd.DataFrame(data=np.arange(12).reshape(3, 4))
      )
      with patch(
          "nevergrad.functions.mlda.datasets.get_data"
      ) as data_getter:
          data_getter.return_value = data
          func = problems.SammonMapping.from_mlda(name=name).copy()
      value = func(np.arange(6).reshape((-1, 2)))
      np.testing.assert_almost_equal(
          value, 0 if name == "Virus" else 5.152, decimal=4
      )
  
file_path: nevergrad/nevergrad/functions/mlda/test_problems.py
imports: from unittest.mock import patch
  import numpy
  import pandas
  from ...common import testing
  from .None import problems
label_desc: Use image node_id 5 for calling a global function with example usage: test_sammon_mapping() without return types