code: def test_if_matrix_creation_follows_format(self):
      matrix = np.matrix([])
      for sparse_format in SPARSE_MATRIX_FORMATS:
          new_matrix = matrix_creation_function_for_format(
              sparse_format
          )(matrix)
  
          self.assertTrue(sp.issparse(new_matrix))
          self.assertTrue(new_matrix.format == sparse_format)
  
file_path: scikit-multilearn/skmultilearn/tests/test_utils.py
imports: import unittest
  import numpy
  import scipy.sparse
  from ..utils import get_matrix_in_format, matrix_creation_function_for_format
label_desc: Use image node_id 2 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_if_matrix_creation_follows_format() without return types