code: def test_clean_commandline_error_exit_clean_exit(
      self, exc_type, exit_value
  ):
      with mock.patch.object(sys, "exit") as mock_exit:
          with errors.clean_commandline_error_exit(
              exit_value=exit_value
          ):
              raise exc_type()
      mock_exit.assert_called_once_with(exit_value)
  
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 3 for calling the ErrorsTest obj's underlying member method code with example usage: obj.test_clean_commandline_error_exit_clean_exit(exc_type, exit_value) without return types