Make `core.Tensor` the base type for Tensor and replace the `register_dense_tensor_like` with direct subclassing.
Make `core.Tensor` the base type for Tensor and replace the `register_dense_tensor_like` with direct subclassing.

PiperOrigin-RevId: 311206817

tensorflow/mesh,tensorflow/mesh