code: def test_no_descent_child_removal(self):
      visitor = self.TestVisitor()
      children = [("name1", "thing1"), ("mock", "thing2")]
      public_api.PublicAPIVisitor(visitor)("test", "dummy", children)
      # Make sure not-to-be-descended-into symbols are removed after the visitor
      # is called.
      self.assertEqual(
          [("name1", "thing1"), ("mock", "thing2")],
          visitor.last_children,
      )
      self.assertEqual([("name1", "thing1")], children)
  
imports: from tensorflow.python.platform import googletest
  from tensorflow.tools.common import public_api
label_desc: Use image node_id 3 for calling the PublicApiTest obj's underlying member method code with example usage: obj.test_no_descent_child_removal() without return types