Suppose, I would like to create a Mongoengine model which has a field that can either be a string literal, or a float.
For instance, in Python typing