add_non_essential_dims function

What do you think about interface and description?