(function from pyomo.common.flags)
pyomo.common.flags
True if it looks like we are serializing objects
This looks through the call stack and returns True if it finds a dump function anywhere in the call stack. While not foolproof, this should reliably catch most serializers, including pickle and yaml`.
pickle