code: def test_parametrization() -> None:
      # DOC_PARAM_0
      arg1 = ng.p.Choice(["Helium", "Nitrogen", "Oxygen"])
      arg2 = ng.p.TransitionChoice(["Solid", "Liquid", "Gas"])
      values = ng.p.Tuple(
          ng.p.Scalar().set_integer_casting(), ng.p.Scalar()
      )
  
      instru = ng.p.Instrumentation(arg1, arg2, "blublu", amount=values)
      print(instru.dimension)
      # >>> 6
      # DOC_PARAM_1
  
      def myfunction(arg1, arg2, arg3, amount=(2, 2)):
          print(arg1, arg2, arg3)
          return amount[0] ** 2 + amount[1] ** 2
  
      optimizer = ng.optimizers.NGOpt(
          parametrization=instru, budget=100
      )
      recommendation = optimizer.minimize(myfunction)
      print(recommendation.value)
      # >>> (('Helium', 'Gas', 'blublu'), {'value': (0, 0.0006602471804655007)})
      # DOC_PARAM_2
      instru2 = instru.spawn_child().set_standardized_data(
          [-80, 80, -80, 0, 3, 5.0]
      )
      assert instru2.args == ("Nitrogen", "Liquid", "blublu")
      assert instru2.kwargs == {"amount": (3, 5.0)}
  
file_path: nevergrad/nevergrad/optimization/test_doc.py
imports: import warnings
  import numpy
  import nevergrad
label_desc: Use image node_id 4 for calling a global function with example usage: test_parametrization() and returns: unknown