switch DimensionNode's base from TsNode to Node
Switching the base of DimensionNode to TsNode so it can be reused by XLA and other backends.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/75916
Approved by: https://github.com/alanwaketan