def _load_class(class_path, default):
if class_path is None:<EOL><INDENT>return default<EOL><DEDENT>component = class_path.rsplit('<STR_LIT:.>', <NUM_LIT:1>)<EOL>result_processor = getattr(<EOL>importlib.import_module(component[<NUM_LIT:0>]),<EOL>component[<NUM_LIT:1>],<EOL>default<EOL>) if len(component) > <NUM_LIT:1> else default<EOL>return result_processor<EOL>
Loads the class from the class_path string