def from_config(config):
debug_mode = config.get("<STR_LIT>") == "<STR_LIT>"<EOL>name = config.get("<STR_LIT>", None)<EOL>recruiter = None<EOL>if config.get("<STR_LIT>"):<EOL><INDENT>return HotAirRecruiter()<EOL><DEDENT>if name is not None:<EOL><INDENT>recruiter = by_name(name)<EOL>if isinstance(recruiter, (BotRecruiter, MultiRecruiter)):<EOL><INDENT>return recruiter<EOL><DEDENT><DEDENT>if debug_mode:<EOL><INDENT>return HotAirRecruiter()<EOL><DEDENT>if recruiter is not None:<EOL><INDENT>return recruiter<EOL><DEDENT>if name and recruiter is None:<EOL><INDENT>raise NotImplementedError("<STR_LIT>".format(name))<EOL><DEDENT>return MTurkRecruiter()<EOL>
Return a Recruiter instance based on the configuration.

    Default is HotAirRecruiter in debug mode (unless we're using
    the bot recruiter, which can be used in debug mode)
    and the MTurkRecruiter in other modes.