code: def test_round_optimum_discrete(self):
      space = [
          {
              "name": "var1",
              "type": "discrete",
              "domain": (0, 1, 2, 3, 6),
              "dimensionality": 1,
          }
      ]
      test_cases = [
          {"in": [[1]], "out": [[1]]},
          {"in": [[-3]], "out": [[0]]},
          {"in": [[4]], "out": [[3]]},
          {"in": [[5]], "out": [[6]]},
          {"in": [[8]], "out": [[6]]},
      ]
      self.assert_round_optimum(space, test_cases)
  
      space = [
          {
              "name": "var1",
              "type": "discrete",
              "domain": (0, 1, 2, 3, 6),
              "dimensionality": 2,
          }
      ]
      test_cases = [{"in": [[1, 5]], "out": [[1, 6]]}]
      self.assert_round_optimum(space, test_cases)
  
imports: import numpy
  import unittest
  from GPyOpt.core.task.space import Design_space
  from GPyOpt.core.task.variables import BanditVariable, DiscreteVariable, CategoricalVariable, ContinuousVariable
  from GPyOpt.core.errors import InvalidConfigError
label_desc: Use image node_id 22 for calling the TestDesignSpace obj's underlying member method code with example usage: obj.test_round_optimum_discrete() without return types