@staticmethod<EOL><INDENT>def register_warning_code(code, exception_type, domain='<STR_LIT>'):<DEDENT>
Logger._warning_code_to_exception[code] = (exception_type, domain)<EOL>Logger._domain_codes[domain].add(code)<EOL>
Register a new warning code