code: def test_format_data(self):
      # None input
      self.assertEqual(format_data(None), None)
  
      # Sparse data
      sparse_matrix = csr_matrix((3, 4), dtype=np.int8)
      formated_sparce_matrix = format_data(sparse_matrix)
      self.assertIs(formated_sparce_matrix, sparse_matrix)
      self.assertEqual(
          formated_sparce_matrix.dtype, sparse_matrix.dtype
      )
  
      # Vector input
      x = np.random.random(10)
      formated_x = format_data(x, is_feature1d=True)
      self.assertEqual(formated_x.shape, (10, 1))
  
      x = np.random.random(10)
      formated_x = format_data(x, is_feature1d=False)
      self.assertEqual(formated_x.shape, (1, 10))
  
file_path: neupy/tests/utils/test_processing.py
imports: import numpy
  import tensorflow
  from scipy.sparse import csr_matrix
  from neupy.utils.processing import format_data, asfloat
  from base import BaseTestCase
label_desc: Use image node_id 1 for calling the ProcessingUtilsTestCase obj's underlying member method code with example usage: obj.test_format_data() without return types