code: def test_feature_vectors(self):
      x = np.random.rand(10, 4)
      x_original = x.copy()
      num_space = 5
      encoder = ThermometerEncoding(
          clip_values=(0, 1), num_space=num_space, channels_first=True
      )
      x_encoded, _ = encoder(x)
      self.assertEqual(x_encoded.shape, (10, 20))
      # Check that x has not been modified by attack and classifier
      self.assertAlmostEqual(
          float(np.max(np.abs(x_original - x))), 0.0, delta=0.00001
      )
  
file_path: adversarial-robustness-toolbox/tests/defences/test_thermometer_encoding.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import numpy
  from art.defences.preprocessor import ThermometerEncoding
  from tests.utils import master_seed
label_desc: Use image node_id 5 for calling the TestThermometerEncoding obj's underlying member method code with example usage: obj.test_feature_vectors() without return types