

def configure_outputs(obj, tvtk_obj):
    if is_old_pipeline():
        obj.outputs = [tvtk_obj.output]
    elif hasattr(tvtk_obj, 'output_port'):
        obj.outputs = [obj.output_port]
    else:
        obj.outputs = [tvtk_obj]

dataset/ETHPy150Open enthought/mayavi/tvtk/common.py configure_outputs/VarMisuse@45/64 `tvtk_obj`->`obj`