code: def test_lvq_weight_initialization_state(self):
      lvqnet = algorithms.LVQ(n_inputs=2, n_classes=2)
      self.assertFalse(lvqnet.initialized)
  
      lvqnet.train(
          np.random.random((10, 2)),
          np.random.random(10).round(),
          epochs=1,
      )
      self.assertTrue(lvqnet.initialized)
  
      lvqnet = algorithms.LVQ(
          n_inputs=2, n_classes=3, weight=np.random.random((2, 3))
      )
      self.assertTrue(lvqnet.initialized)
  
      lvqnet = algorithms.LVQ(
          n_inputs=2, n_classes=3, weight=init.Normal()
      )
      self.assertTrue(lvqnet.initialized)
      self.assertEqual(lvqnet.weight.shape, (2, 3))
  
imports: from functools import partial
  import numpy
  from sklearn import datasets
  from neupy import algorithms, init
  from neupy.exceptions import NotTrained
  from base import BaseTestCase
  from helpers import compare_networks
label_desc: Use image node_id 4 for calling the LVQTestCase obj's underlying member method code with example usage: obj.test_lvq_weight_initialization_state() without return types