code: def _assertDeprecatedWarningRegex(self, expected_regex):
      self._mock_warn.assert_called()
      (message, warning_cls), unused_kwargs = self._mock_warn.call_args
      self.assertEqual(
          warning_cls, deprecation_utils.TfxDeprecationWarning
      )
      self.assertRegex(message, expected_regex)
  
file_path: tfx/tfx/utils/channel_test.py
imports: from unittest import mock
  import tensorflow
  from tfx.types import standard_artifacts
  from tfx.utils import channel
  from tfx.utils import deprecation_utils
  from tfx.utils import test_case_utils
label_desc: Use image node_id 2 for calling the ChannelTest obj's underlying member method code with example usage: obj._assertDeprecatedWarningRegex(expected_regex) without return types