code: def test_function_descriptors_and_pickle() -> None:
      func = ExampleFunction(dimension=1, number=3)
      assert "default" in func.descriptors
      assert "self" not in func._auto_init
      out = pickle.dumps(func)
      func2 = pickle.loads(out).copy()
      assert func2.descriptors["number"] == 3
  
imports: import pickle
  import numpy
  import pytest
  import nevergrad
  from nevergrad.common import testing
  from nevergrad.functions import ArtificialFunction
  import nevergrad.common.typing
  from .None import base
  from .None import helpers
label_desc: Use image node_id 9 for calling a global function with example usage: test_function_descriptors_and_pickle() without return types