def METHOD_NAME(sequence, tempdir_path, data):
    import flame
    export_preset = os.path.join(
        EXPORT_PRESETS_DIR,
        "openpype_seg_video_h264.xml"
    )
    new_path = configure_preset(export_preset, data)
    poster_frame_exporter = flame.PyExporter()
    poster_frame_exporter.foreground = True
    poster_frame_exporter.export(sequence, new_path, tempdir_path)