code: def testGenerateMbyNMaskRaise(self, m_by_n):
      shape = [2, 5]
      weights = tf.Variable(
          glorot_uniform_initializer()(shape),
          shape=shape,
          name="weights",
      )
      with self.assertRaises(tf.errors.InvalidArgumentError):
          pruning_utils.generate_m_by_n_mask(weights, m_by_n)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import tensorflow
  from tensorflow_model_optimization.python.core.keras import compat
  from tensorflow_model_optimization.python.core.sparsity.keras import pruning_utils
label_desc: Use image node_id 2 for calling the GenerateMbyNMaskTest obj's underlying member method code with example usage: obj.testGenerateMbyNMaskRaise(m_by_n) without return types