def validate_metadata(self, handler):
if self.meta == '<STR_LIT>':<EOL><INDENT>new_metadata = self.metadata<EOL>cur_metadata = handler.read_metadata(self.cname)<EOL>if (new_metadata is not None and cur_metadata is not None and<EOL>not array_equivalent(new_metadata, cur_metadata)):<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT><DEDENT>
validate that kind=category does not change the categories