[pt2] recursive IR check (#98887)
Summary: IR check needs to be recursive to accommodate Tuple[Tensor, Tuple[Tensor]] schema
Test Plan:
Run the repro cmd and make sure it no longer fails
TORCH_SHOW_CPP_STACKTRACES=1 TORCH_LOGS="+dynamo,aot,inductor" buck2 run mode/opt scripts/ml_model_exploration/coffee:defi_local -- --baseline_model_entity_id 421946503 --meta_ids '{"union_meta":422685721}' -g -t -l --model_type mimo_ctr_mbl_feed
Differential Revision: D44809096
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98887
Approved by: https://github.com/wconstab