code: def test_landscape() -> None:
      data = np.arange(6).reshape(3, 2)
      with patch(
          "nevergrad.functions.mlda.datasets.get_data"
      ) as data_getter:
          data_getter.return_value = data
          func = problems.Landscape(transform=None).copy()
          sfunc = problems.Landscape(transform="square")
      np.testing.assert_equal(func(0, 0), 5)
      np.testing.assert_equal(func(-0.2, -0.2), 5)
      np.testing.assert_equal(func(-0.6, -0.2), float("inf"))
      np.testing.assert_equal(func(2, 1), 0)
      np.testing.assert_equal(func(2.6, 1), float("inf"))
      # with square
      args = (
          sfunc.parametrization.spawn_child()
          .set_standardized_data([-1, -1])
          .args
      )  # bottom left
      np.testing.assert_equal(args, [0, 0])
      args = (
          sfunc.parametrization.spawn_child()
          .set_standardized_data([1, 1])
          .args
      )  # upper right
      np.testing.assert_equal(args, [2, 1])
  
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 7 for calling a global function with example usage: test_landscape() without return types