code: def testRemoveDependency(self):
      root = autotrackable.AutoTrackable()
      root.a = autotrackable.AutoTrackable()
      self.assertEqual(1, len(root._trackable_children()))
      self.assertEqual(
          1, len(root._unconditional_checkpoint_dependencies)
      )
      self.assertIs(root.a, root._trackable_children()["a"])
      del root.a
      self.assertFalse(hasattr(root, "a"))
      self.assertEqual(0, len(root._trackable_children()))
      self.assertEqual(
          0, len(root._unconditional_checkpoint_dependencies)
      )
      root.a = autotrackable.AutoTrackable()
      self.assertEqual(1, len(root._trackable_children()))
      self.assertEqual(
          1, len(root._unconditional_checkpoint_dependencies)
      )
      self.assertIs(root.a, root._trackable_children()["a"])
  
file_path: tensorflow-upstream/tensorflow/python/trackable/autotrackable_test.py
imports: import os
  import numpy
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
  from tensorflow.python.trackable import autotrackable
  from tensorflow.python.trackable import data_structures
  from tensorflow.python.util import nest
label_desc: Use image node_id 2 for calling the InterfaceTests obj's underlying member method code with example usage: obj.testRemoveDependency() without return types