def METHOD_NAME():
    with open(temp, 'w') as f:
        f.write('a')
    with pytest.raises(IOError):
        with LH5TrajectoryFile(temp, 'w', force_overwrite=False) as f:
            f.write(np.random.randn(10, 5, 3))