code: def test_rand_anchor_points_without_duplicate(self):
      space = [
          {
              "name": "var_1",
              "type": "continuous",
              "domain": (-3, 1),
              "dimensionality": 1,
          },
          {"name": "var_2", "type": "discrete", "domain": (0, 1, 2, 3)},
          {"name": "var_3", "type": "categorical", "domain": (0, 1)},
      ]
  
      design_space = Design_space(space)
  
      np.random.seed(666)
  
      design_type = "random"
  
      generator = RandomAnchorPointsGenerator(
          design_space, design_type, num_samples=10
      )
  
      scores = generator.get_anchor_point_scores(
          np.arange(3).reshape(3, 1)
      )
  
      assert (
          np.linalg.norm(scores - np.array([0.0, 1.0, 2.0])) < tolerance
      )
  
      assert (
          np.linalg.norm(
              generator.get(num_anchor=2)
              - np.array(
                  [
                      [-2.19900984, 0.0, 0.0, 1.0],
                      [-0.02338332, 2.0, 1.0, 0.0],
                  ]
              )
          )
          < tolerance
      )
  
file_path: GPyOpt/GPyOpt/testing/functional_tests/test_anchor_points_generator.py
imports: import unittest
  import numpy
  from GPyOpt.core.task.space import Design_space
  from GPyOpt.util.duplicate_manager import DuplicateManager
  from GPyOpt.optimization.anchor_points_generator import ObjectiveAnchorPointsGenerator, ThompsonSamplingAnchorPointsGenerator, RandomAnchorPointsGenerator
label_desc: Use image node_id 4 for calling the TestAnchorPointsGenerator obj's underlying member method code with example usage: obj.test_rand_anchor_points_without_duplicate() without return types