code: def test_equality() -> None:
      func = ArtificialFunction(name="sphere", block_dimension=2)
      xp1 = xpbase.Experiment(
          func, optimizer="OnePlusOne", budget=300, num_workers=2
      )
      xp2 = xpbase.Experiment(
          func, optimizer="RandomSearch", budget=300, num_workers=2
      )
      assert xp1 != xp2
  
imports: import sys
  import contextlib
  from unittest.mock import patch
  import numpy
  import nevergrad.common.typing
  from nevergrad.common import testing
  from nevergrad.optimization import test_base
  from nevergrad.functions import ArtificialFunction
  from nevergrad.functions.base import MultiExperiment
  from nevergrad.functions.test_base import ExampleFunction
  from nevergrad.functions.test_functionlib import DESCRIPTION_KEYS
  from .None import xpbase
label_desc: Use image node_id 8 for calling a global function with example usage: test_equality() without return types