def METHOD_NAME():
    file_path = 'tests/gitlab_ci/resources/images/.gitlab-ci.yml'
    workflow_config = {
        "default": {
            "image": {
                "name": "ruby:2.6",
                "entrypoint": [
                    "/bin/bash"
                ],
                "__startline__": 3,
                "__endline__": 6
            },
            "services": [
                {
                    "name": "privateregistry/stuff/my-postgres:11.7",
                    "alias": "db-postgres",
                    "__startline__": 7,
                    "__endline__": 9
                },
                {
                    "name": "redis:latest",
                    "__startline__": 9,
                    "__endline__": 10
                },
                "nginx:1.17"
            ],
            "before_script": [
                "bundle install"
            ],
            "__startline__": 2,
            "__endline__": 15
        },
        "__startline__": 1,
        "__endline__": 32
    }
    gitlab_ci_provider = GitlabCiProvider(workflow_config=workflow_config, file_path=file_path)
    images = gitlab_ci_provider.extract_images_from_workflow()
    assert set(images) == {
        Image(
            end_line=6,
            start_line=3,
            file_path=file_path,
            name='ruby:2.6',
            related_resource_id='default.image'
        ),
        Image(
            end_line=10,
            start_line=9,
            file_path=file_path,
            name='redis:latest',
            related_resource_id='default.services.2'
        ),
        Image(
            end_line=10,
            start_line=9,
            file_path=file_path,
            name='nginx:1.17',
            related_resource_id='default.services.2'
        ),
        Image(
            end_line=9,
            start_line=7,
            file_path=file_path,
            name='privateregistry/stuff/my-postgres:11.7',
            related_resource_id='default.services.1'
        )
    }