code: def get_unique_named_object(root, name):
      
      a = get_children(lambda x: hasattr(x, 'name') and x.name == name, root)
      assert len(a) == 1
      return a[0]
docs: retrieves a unique named object (no fully qualified name)
  
      Args:
          root: start of search
          name: name of object
  
      Returns:
          the object (if not unique, raises an error)