def raise_if_freezed(self):
if self.is_freezed:<EOL><INDENT>name = type(self).__name__<EOL>raise InvalidOperationException('<STR_LIT>'.format(name=name))<EOL><DEDENT>
raise `InvalidOperationException` if is freezed.