code: def test_getattr(self):
      self.assertFalse(self.wrapped_flags.is_parsed())
      with test.mock.patch.object(
          sys, "argv", new=["program", "--test=new"]
      ):
          self.assertEqual("new", self.wrapped_flags.test)
      self.assertTrue(self.wrapped_flags.is_parsed())
  
file_path: tensorflow/tensorflow/python/platform/flags_test.py
imports: import sys
  import unittest
  from absl import flags
  from tensorflow.python.platform import flags
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the FlagsTest obj's underlying member method code with example usage: obj.test_getattr() without return types