code: def test_init_kmeans_plusplus_safe_duplicate_indices_warning_suppressed(
      self, kmeans_plusplus_mock, choice_mock, warn_mock
  ):
      x = np.random.rand(100, 10)
  
      result_indices = np.array(
          [0, 1, 2, 3, 4, 5, 6, 7, 42, 42]
      )  # 42 is not unique here
      kmeans_plusplus_mock.return_value = [
          x[result_indices],
          result_indices,
      ]
  
      centers, indices = init_kmeans_plusplus_safe(
          x, 10, suppress_warning=True
      )
      kmeans_plusplus_mock.assert_called()
      choice_mock.assert_called()
      warn_mock.assert_not_called()
      self.assertEqual((10, 10), centers.shape)
      self.assertEqual(10, indices.shape[0])
  
file_path: small-text/tests/unit/small_text/utils/test_clustering.py
imports: import unittest
  import numpy
  from unittest.mock import patch
  from small_text.utils.clustering import init_kmeans_plusplus_safe
label_desc: Use image node_id 3 for calling the ClusteringUtilsTest obj's underlying member method code with example usage: obj.test_init_kmeans_plusplus_safe_duplicate_indices_warning_suppressed(kmeans_plusplus_mock, choice_mock, warn_mock) without return types