get_dimension_type function

Get the dimension type