code: def test_clean_commandline_error_exit_raise_non_allowed(
      self, exc_type, msg
  ):
      with self.assertRaisesRegexp(exc_type, msg):
          with errors.clean_commandline_error_exit():
              raise exc_type(msg)
  
file_path: deepvariant/third_party/nucleus/util/errors_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import errno
  import sys
  from absl import logging
  from absl.testing import absltest
  from absl.testing import parameterized
  import mock
  from third_party.nucleus.util import errors
label_desc: Use image node_id 2 for calling the ErrorsTest obj's underlying member method code with example usage: obj.test_clean_commandline_error_exit_raise_non_allowed(exc_type, msg) without return types