class_docstr: Test various APIs that have been changed in 2.0.
code: def setUpClass(cls):
      cls._tf_api_version = 1 if hasattr(tf, "contrib") else 2
  
file_path: tensorflow-upstream/tensorflow/tools/compatibility/testdata/test_file_v1_12.py
imports: import tensorflow.compat.v1
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the TestUpgrade obj's underlying member method code with example usage: obj.setUpClass(cls) without return types