<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _check_workflows_align(config):
 """ Ensure that the common shared jobs in the `raiden-default` and `nightly` workflows are identical. """


    jobs_default = config['workflows']['raiden-default']['jobs']
    jobs_nightly = config['workflows']['nightly']['jobs']

    if jobs_default == jobs_nightly[:len(jobs_default)]:
        return True, []

    job_diff = unified_diff(
        [f"{line}\n" for line in jobs_default],
        [f"{line}\n" for line in jobs_nightly[:len(jobs_default)]],
        'raiden-default',
        'nightly',
    )
    message = [
        _yellow(
            "Mismatch in common items of workflow definitions 'raiden-default' and "
            "'nightly':\n",
        ),
    ]
    for line in job_diff:
        if line.startswith('-'):
            message.append(_red(line))
        elif line.startswith('+'):
            message.append(_green(line))
        else:
            message.append(line)

    return False, ''.join(message)