code: def test_get_nash() -> None:
      zeroptim = xpvariants.Zero(
          parametrization=1, budget=4, num_workers=1
      )
      param = zeroptim.parametrization
      for k in range(4):
          array = (float(k),)
          zeroptim.archive[array] = utils.MultiValue(
              param, k, reference=param
          )
          zeroptim.archive[array].count += 4 - k
      nash = utils._get_nash(zeroptim)
      testing.printed_assert_equal(
          nash, [((2,), 3), ((1,), 4), ((0,), 5)]
      )
      np.random.seed(12)
      output = utils.sample_nash(zeroptim)
      np.testing.assert_equal(output, (2,))
  
file_path: nevergrad/nevergrad/optimization/test_utils.py
imports: import pickle
  import pytest
  import numpy
  import nevergrad
  from nevergrad.common import testing
  from .test_base import CounterFunction
  from .None import experimentalvariants
  from .None import utils
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_nash() without return types