code: def test_temporary_deterinistic_softmax_layer() -> None:
      param = ng.p.Array(shape=(1, 100))
      param.add_layer(
          _datalayers.SoftmaxSampling(arity=100, deterministic=False)
      )
      param._value[0, 12] = 1
      del param.value
      with helpers.deterministic_sampling(param):
          assert param.value[0] == 12
      # the behavior should be stochastic when not using the context
      different = False
      for _ in range(10000):
          del param.value
          different = param.value[0] != 12
          if different:
              break
      assert (
          different
      ), "At least one sampling should have been different"
  
imports: import pytest
  import numpy
  import nevergrad
  from nevergrad.common import testing
  import nevergrad.common.typing
  from .None import _datalayers
  from .None import helpers
label_desc: Use image node_id 12 for calling a global function with example usage: test_temporary_deterinistic_softmax_layer() without return types