Tree Layout with small image indicating valid or invalid nodes

Sample GoJS Tree View displays the Tree view.

What I need is to display of small image on existing picture (open folder , closed folder or document) to indicate whether the node is valid or not (Visual representation with small green correct mark or red - cross mark)

Can you provide the modified template for same?

There are several ways for you to go.

You could have several different images. Bind the Picture.source to your validity property using a conversion function that returns the appropriate URL.

You could have a separate object to indicate validity. Bind its GraphObject.visible or GraphObject.opacity property to your validity property.
http://gojs.net/latest/intro/nodes.html

There are other possibilities as well, but this is probably enough for you to implement what you decide you want.