New validation schema
The way we've been doing asserts to make sure that input types are valid can significantly bloat the function definiton particularly for complex function definitions. This decorator is an idea to remove that code from the function definition.
One example is shown in MaterialMap.