Revert "Use is_symbolic instead of testing isinstance in some place (#110372)"
This reverts commit 8672d64fed2d76062f14a74075d560fe6fc38b1a.
Reverted https://github.com/pytorch/pytorch/pull/110372 on behalf of https://github.com/PaliC due to bottom diff is causing a plethora of internal failures ([comment](https://github.com/pytorch/pytorch/pull/110372#issuecomment-1749795074))