Unit Registry Function
Function for get the type of Quantity