code: def test_update():
      domain = Domain({"x": {-5.0, 6.0}})
      gs = exhaustive.GridSearch(domain)
      gs.update([domain.sample() for _ in range(10)], list(range(10)))
      gs.update(domain.sample(), {"score": 23.0})
      gs.update(domain.sample(), 2.0)
      assert len(gs.history) == 12
  
imports: import pytest
  from hypertunity.domain import Domain
  from hypertunity.optimisation import exhaustive
  from .None import _common
label_desc: Use image node_id 3 for calling a global function with example usage: test_update() without return types