code: def test_kmax_less_than_kinit(self):
      self.assertRaises(
          ValueError,
          gmeans,
          [[0], [1], [2]],
          3,
          False,
          tolerance=1,
          repeat=0,
          kmax=2,
      )
  
imports: import unittest
  import matplotlib
  from pyclustering.cluster.tests.gmeans_templates import gmeans_test_template
  from pyclustering.cluster.gmeans import gmeans
  from pyclustering.utils import read_sample, distance_metric, type_metric
  from pyclustering.samples.definitions import SIMPLE_SAMPLES, FCPS_SAMPLES, SIMPLE_ANSWERS
label_desc: Use image node_id 38 for calling the gmeans_unit_test obj's underlying member method code with example usage: obj.test_kmax_less_than_kinit() without return types