def _shallow_annotate(element, annotations):
 element = element._annotate(annotations)
 element._copy_internals()
 return element

def _shallow_annotate ( element , annotations ) : element = element . _annotate ( annotations ) element . _copy_internals ( ) return element
annotate the given clauseelement and copy its internals so that internal objects refer to the new annotated object .