def METHOD_NAME(default_surface):
    """Test threading for segfaults."""
    def test_xtgeo():
        stream = io.BytesIO()
        surface = xtgeo.RegularSurface(**default_surface)
        surface.to_file(stream)
        print("XTGeo succeeded")
    threading.Timer(1.0, test_xtgeo).start()