import collections
class DictExtension(collections.OrderedDict):
def method(self, val):
if isinstance(val, collections.defaultdict):
pass
else:
pass
aW1wb3J0IGNvbGxlY3Rpb25zCgpjbGFzcyBEaWN0RXh0ZW5zaW9uKGNvbGxlY3Rpb25zLk9yZGVyZWREaWN0KToKCWRlZiBtZXRob2Qoc2VsZiwgdmFsKToKCQlpZiBpc2luc3RhbmNlKHZhbCwgY29sbGVjdGlvbnMuZGVmYXVsdGRpY3QpOgoJCQlwYXNzCgkJZWxzZToKCQkJcGFzcw==