@classmethod<EOL><INDENT>def coerce(cls, key, value):<DEDENT>
if value is None:<EOL><INDENT>return value<EOL><DEDENT>if isinstance(value, cls):<EOL><INDENT>return value<EOL><DEDENT>if isinstance(value, dict):<EOL><INDENT>return NestedMutableDict.coerce(key, value)<EOL><DEDENT>if isinstance(value, list):<EOL><INDENT>return NestedMutableList.coerce(key, value)<EOL><DEDENT>return super(cls).coerce(key, value)<EOL>
Convert plain dictionary to NestedMutable.