def hms_str_to_tuple(hms_string):
if '<STR_LIT::>' in hms_string:<EOL><INDENT>separator = '<STR_LIT::>'<EOL><DEDENT>else:<EOL><INDENT>separator = '<STR_LIT:U+0020>'<EOL><DEDENT>hh, mm, ss = hms_string.split(separator)<EOL>return int(hh), int(mm), float(ss)<EOL>
Converts a string of the form HH:MM:SS or HH MM SS to a tuple of the form
    (HH, MM, SS).

    Parameters
    ----------

    hms_string : str
        A RA coordinate string of the form 'HH:MM:SS.sss' or 'HH MM SS.sss'.

    Returns
    -------

    tuple
        A three element tuple is returned (HH, MM, SS.ssss...)