How to check status of Meta Strip toggle with python?
import bpy

scene = bpy.context.scene
seq_editor = scene.sequence_editor

if len(seq_editor.meta_stack) &gt; 0:
    meta_name = seq_editor.meta_stack[-1].name
    print(meta_name + ' is currently expanded')
else:
    print('All meta strips are collapsed')


See meta_stack for more information.