fix 'sympy.core.logic' has no attribute 'boolalg' (#95130)
Summary: fix module error by directly importing `sympy.logic.boolalg.Boolean`
Test Plan: CI
Differential Revision: D43423823
Pull Request resolved: https://github.com/pytorch/pytorch/pull/95130
Approved by: https://github.com/Skylion007