def METHOD_NAME(workflow, name, organization, expected):
    df_content = dedent("""\
        FROM fedora
        LABEL "name"="{}"
        LABEL "version"="1.7"
        LABEL "release"="99"
    """.format(name))
    workflow.build_dir.any_platform.dockerfile.content = df_content
    if organization:
        reactor_config = {
            'version': 1,
            'registries_organization': organization
        }
        workflow.conf.conf = reactor_config
    input_tags = {
        'unique': ['foo', 'bar'],
        'primary': ['{version}', '{version}-{release}'],
    }
    plugin = TagFromConfigPlugin(workflow)
    plugin.tag_suffixes = input_tags
    plugin.run()
    expected_images = [f'{REGISTRY}/{expected}:{tag}' for tag in ['foo', 'bar', '1.7', '1.7-99']]
    actual_images = [str(image) for image in workflow.data.tag_conf.images]
    assert sorted(actual_images) == sorted(expected_images)