def METHOD_NAME(con, hdfs, alltypes_df):
    writer = DataFrameWriter(con, alltypes_df)
    path = writer.write_temp_csv()
    assert hdfs.exists(path)
    writer.cleanup()
    assert not hdfs.exists(path)
    # noop
    writer.cleanup()
    assert not hdfs.exists(path)