def reference_id_parts(reference_id):
    """\
    Returns a tuple from the provided `reference_id`::

        (YEAR, ORIGIN, S/N)

    `reference_id`
        Cable reference identifier or canonical identifier.
    """
    m = consts.REFERENCE_ID_PATTERN.match(reference_id)
    if m:
        return m.groups()
    raise ValueError('Illegal reference identifier: "%s"' % reference_id)
def reference_id_parts ( reference_id ) : m = consts . REFERENCE_ID_PATTERN . match ( reference_id ) if m : return m . groups ( ) raise ValueError ( 'Illegal reference identifier: "%s"' % reference_id )
\
    Returns a tuple from the provided `reference_id`::

        (YEAR, ORIGIN, S/N)

    `reference_id`
        Cable reference identifier or canonical identifier.