def get_dump_method(dump, protocol=-<NUM_LIT:1>):
if dump is None:<EOL><INDENT>dump = '<STR_LIT>'<EOL><DEDENT>if dump.startswith('<STR_LIT>'):<EOL><INDENT>if dump == '<STR_LIT>':<EOL><INDENT>proto = protocol<EOL><DEDENT>else:<EOL><INDENT>proto = dump.strip('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>proto = int(proto)<EOL>assert proto>=-<NUM_LIT:1><EOL><DEDENT>except:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>code = """<STR_LIT>"""<EOL><DEDENT>rt dill<EOL><INDENT>open('<STR_LIT>', '<STR_LIT:wb>') as fd:<EOL><DEDENT>dill.dump( value, fd, protocol=%i )<EOL>fd.flush()<EOL>os.fsync(fd.fileno())<EOL>proto<EOL>elif dump == '<STR_LIT>':<EOL><INDENT>code = """<STR_LIT>"""<EOL><DEDENT>rt numpy<EOL><INDENT>open('<STR_LIT>', '<STR_LIT:wb>') as fd:<EOL><DEDENT>numpy.save(file=fd, arr=value)<EOL>fd.flush()<EOL>os.fsync(fd.fileno())<EOL>elif dump == '<STR_LIT>':<EOL><INDENT>code =
Get dump function code string