code: def testUnknownErrorCodeCausesWarning(self):
      with warnings.catch_warnings(record=True) as w:
          # pylint: disable=protected-access
          exc = errors_impl._make_specific_exception(
              None, None, None, 37
          )
          # pylint: enable=protected-access
      self.assertEqual(1, len(w))
      self.assertTrue("Unknown error code: 37" in str(w[0].message))
      self.assertTrue(isinstance(exc, errors_impl.OpError))
  
      with warnings.catch_warnings(record=True) as w:
          # pylint: disable=protected-access
          exc = errors_impl.error_code_from_exception_type("Unknown")
          # pylint: enable=protected-access
      self.assertEqual(1, len(w))
      self.assertTrue("Unknown class exception" in str(w[0].message))
      self.assertTrue(isinstance(exc, errors_impl.OpError))
  
imports: import gc
  import pickle
  import warnings
  from tensorflow.core.lib.core import error_codes_pb2
  from tensorflow.python.framework import _errors_test_helper
  from tensorflow.python.framework import c_api_util
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.lib.io import _pywrap_file_io
  from tensorflow.python.platform import test
  from tensorflow.python.util import compat
label_desc: Use image node_id 4 for calling the ErrorsTest obj's underlying member method code with example usage: obj.testUnknownErrorCodeCausesWarning() without return types