code: def testContribWarning(self):
      text = "tf.contrib.foo()"
      _, report, _, _ = self._upgrade(text)
      expected_info = "tf.contrib will not be distributed"
      self.assertIn(expected_info, report)
  
file_path: tensorflow/tensorflow/tools/compatibility/tf_upgrade_v2_safety_test.py
imports: import io
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
  from tensorflow.tools.compatibility import ast_edits
  from tensorflow.tools.compatibility import tf_upgrade_v2_safety
label_desc: Use image node_id 2 for calling the TfUpgradeV2SafetyTest obj's underlying member method code with example usage: obj.testContribWarning() without return types