<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _split_dimension(text):
 """ Returns the number and unit from the given piece of text as a pair. (1, 'pt') (1, 'pt') (1, 'pt') (1, 'pt') (1, 'pt') (3, None) (-12.43, 'mm') (-12.43, '"') """

    match = _dimension_finder.match(text)
    if not match:
        raise DimensionError("Can't parse dimension '%s'." % text)
    number = match.group(1)
    unit = match.group(4)
    if '.' in number:
        return (float(number), unit)
    else:
        return (int(number), unit)