<s> from django . core . exceptions import ImproperlyConfigured <EOL> __all__ = [ '<STR_LIT>' ] <EOL> def validate ( tool_class , model_class ) : <EOL> """<STR_LIT>""" <EOL> if not hasattr ( tool_class , '<STR_LIT:name>' ) : <EOL> raise ImproperlyConfigured ( "<STR_LIT>" % ( <EOL> tool_class . __name__ <EOL> ) ) <EOL> if not hasattr ( tool_class , '<STR_LIT:label>' ) : <EOL> raise ImproperlyConfigured ( "<STR_LIT>" % ( <EOL> tool_class . __name__ <EOL> ) ) <EOL> if not hasattr ( tool_class , '<STR_LIT>' ) : <EOL> raise NotImplementedError ( "<STR_LIT>" % ( <EOL> tool_class . __name__ <EOL> ) ) </s>
