def METHOD_NAME(self, obj):
    if obj.is_reg:
        # strict checks
        if obj.chksums is None or "md5" not in obj.chksums:
            raise TypeError("fsFile objects need to be strict")
    contentsSet.METHOD_NAME(self, obj)