def generate_override(self, separator='<STR_LIT:.>'):
data = self.get_data()<EOL>if not isinstance(data, dict):<EOL><INDENT>raise YapconfLoadError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>(self.label, type(data))<EOL>)<EOL><DEDENT>return self.label, yapconf.flatten(data, separator=separator)<EOL>
Generate an override.

        Uses ``get_data`` which is expected to be implemented by each child
        class.

        Returns:
            A tuple of label, dict

        Raises:
            YapconfLoadError: If a known error occurs.