Input, Output, Insight: Inference from Black Boxes – Contextuality, Bell Inequalities, and Beyond