code: def test_ill_init(self):
      with self.assertRaisesRegexp(TypeError, ""):
          sampler = RandomVectorSampler(
              names=("test_vector",), vector_size=10, batch_size=20
          )
      with self.assertRaisesRegexp(TypeError, ""):
          sampler = RandomVectorSampler(
              names=0, vector_size=(10,), batch_size=20
          )
  
file_path: NiftyNet/tests/sampler_random_vector_v2_test.py
imports: from __future__ import absolute_import, division, print_function
  import numpy
  import tensorflow
  from niftynet.engine.sampler_random_vector_v2 import RandomVectorSampler
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 2 for calling the RandomVectorSamplerTest obj's underlying member method code with example usage: obj.test_ill_init() without return types