Move _tensor_impl extensions and use it for dpnp
#2755
Merged
_tensor_impl extensions and use it for dpnp
#2755