code: def make_perceptron_data(name: str) -> np.ndarray:
      """Creates the data (see https://drive.google.com/file/d/1fc1sVwoLJ0LsQ5fzi4jo3rDJHQ6VGQ1h/view)"""
      funcs: tp.Dict[str, tp.Callable[[np.ndarray], np.ndarray]] = {
          "quadratic": lambda x: x**2,  # type: ignore
          "sine": np.sin,
          "abs": np.abs,
          "heaviside": lambda x: x > 0,  # type: ignore
      }
      if name not in funcs:
          raise ValueError(
              f'Unknown name "{name}", available are:\n{list(funcs.keys())}'
          )
      data: np.ndarray = np.zeros((50, 2))  # TODO: why?
      data[:, 0] = np.arange(-1, 1, 0.0408)
      data[:, 1] = funcs[name](data[:, 0])
      return data
  
file_path: nevergrad/nevergrad/functions/mlda/datasets.py
imports: import warnings
  import contextlib
  import typing
  from pathlib import Path
  from unittest.mock import patch
  import requests
  import numpy
  import pandas
  from PIL import Image
label_desc: Use image node_id 6 for calling a global function with example usage: make_perceptron_data(name) and returns: data