def METHOD_NAME(context, output):
    returncode = run_osm2pgsql(context, output)
    if context.scenario.status == "skipped":
        return
    assert returncode == 0,\
           f"osm2pgsql failed with error code {returncode}.\n"\
           f"Output:\n{context.osm2pgsql_outdata[0]}\n{context.osm2pgsql_outdata[1]}\n"