code: def parse_dimension(text):
      
      size, unit = _split_dimension(text)
      factor = _unit_lookup[unit]
      return size*factor
docs: Parses the given text into one dimension and returns its
      equivalent size in points.
  
      The numbers provided can be integer or decimal, but exponents are
      not supported.
  
      The units may be inches (", in, ins, inch, inchs, inches),
      millimeters (mm), points (pt, pts, point, points, or nothing), or
      centimeters (cm). Because this module is intended for use with
      paper-size dimensions, no larger or smaller units are currently
      supported.