Returns a tensor with elements in a rank removed (pulled out).