def get_engine(engine):
if engine == '<STR_LIT>':<EOL><INDENT>engine = get_option('<STR_LIT>')<EOL><DEDENT>if engine == '<STR_LIT>':<EOL><INDENT>try:<EOL><INDENT>return PyArrowImpl()<EOL><DEDENT>except ImportError:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>return FastParquetImpl()<EOL><DEDENT>except ImportError:<EOL><INDENT>pass<EOL><DEDENT>raise ImportError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>if engine not in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if engine == '<STR_LIT>':<EOL><INDENT>return PyArrowImpl()<EOL><DEDENT>elif engine == '<STR_LIT>':<EOL><INDENT>return FastParquetImpl()<EOL><DEDENT>
return our implementation