Adds python type validation for new_object_graph args.
Validates python type of ObjectGraph.provide() arg.