code: def test_var_lifetime_imbalanced_legal(self):
      self.assertFunctionMatchesEager(if_creates_var, True)
      self.assertFunctionMatchesEager(else_creates_var, False)
      self.assertFunctionMatchesEager(if_destroys_var, False)
      self.assertFunctionMatchesEager(else_destroys_var, True)
  
imports: import itertools
  import re
  from absl.testing import parameterized
  import tensorflow
  from tensorflow.python.autograph.tests import reference_test_base
label_desc: Use image node_id 3 for calling the ReferenceTest obj's underlying member method code with example usage: obj.test_var_lifetime_imbalanced_legal() without return types