code: def test_get(self):
      # make sure the only accessing a nested structure
      # doesn't call the structure's __new__ and __init__
      y = Y()
      self.assertEqual((y.x.a, y.x.b), (0, 0))
      self.assertEqual(y.x.new_was_called, False)
  
      # But explicitly creating an X structure calls __new__ and __init__, of course.
      x = X()
      self.assertEqual((x.a, x.b), (9, 12))
      self.assertEqual(x.new_was_called, True)
  
      y.x = x
      self.assertEqual((y.x.a, y.x.b), (9, 12))
      self.assertEqual(y.x.new_was_called, False)
  
file_path: cpython/Lib/test/test_ctypes/test_init.py
imports: import unittest
  from ctypes import Structure, c_int
label_desc: Use image node_id 1 for calling the InitTest obj's underlying member method code with example usage: obj.test_get() without return types