code: def test_preformat_value(self):
      def my_func():
          pass
  
      class MyClass(object):
          pass
  
      self.assertEqual("my_func", preformat_value(my_func))
      self.assertEqual("MyClass", preformat_value(MyClass))
  
      expected = ["my_func", "MyClass", 1]
      actual = preformat_value((my_func, MyClass, 1))
      np.testing.assert_array_equal(expected, actual)
  
      expected = ["my_func", "MyClass", 1]
      actual = preformat_value([my_func, MyClass, 1])
      np.testing.assert_array_equal(expected, actual)
  
      expected = sorted(["my_func", "MyClass", "x"])
      actual = sorted(preformat_value({my_func, MyClass, "x"}))
      np.testing.assert_array_equal(expected, actual)
  
      self.assertEqual(1, preformat_value(1))
  
      expected = (3, 2)
      actual = preformat_value(np.ones((3, 2)))
      np.testing.assert_array_equal(expected, actual)
  
      expected = (1, 2)
      actual = preformat_value(np.matrix([[1, 1]]))
      np.testing.assert_array_equal(expected, actual)
  
file_path: neupy/tests/algorithms/test_network_features.py
imports: from __future__ import unicode_literals
  import numpy
  from sklearn import datasets
  from neupy import algorithms, layers
  from neupy.algorithms.base import preformat_value
  from helpers import catch_stdout
  from base import BaseTestCase
label_desc: Use image node_id 4 for calling the NetworkMainTestCase obj's underlying member method code with example usage: obj.test_preformat_value() without return types