def query_segdb(query_func, *args, **kwargs):
try:<EOL><INDENT>with mock.patch('<STR_LIT>'),mock.patch('<STR_LIT>',<EOL>mocks.segdb_expand_version_number(<NUM_LIT:1>, <NUM_LIT:4>)),mock.patch('<STR_LIT>',<EOL>mocks.segdb_query_segments(QUERY_RESULT)):<EOL><INDENT>return query_func(*args, **kwargs)<EOL><DEDENT><DEDENT>except ImportError as e:<EOL><INDENT>pytest.skip(str(e))<EOL><DEDENT>
Mock a query to an S6-style DB2 database