def METHOD_NAME():
    manifest = om.OciImageManifest(
        config=om.OciBlobRef(
            digest='',
            mediaType='',
            size=0,
        ),
        layers=[
            om.OciBlobRef(
                digest='',
                mediaType='',
                size=0,
            ),
        ],
    )
    manifest_dict = manifest.as_dict()
    assert 'annotations' not in manifest_dict['config']
    assert 'annotations' not in manifest_dict['layers'][0]
    annotations = {
        'key': 'val',
    }
    manifest = om.OciImageManifest(
        config=om.OciBlobRef(
            digest='',
            mediaType='',
            size=0,
            annotations=annotations,
        ),
        layers=[
            om.OciBlobRef(
                digest='',
                mediaType='',
                size=0,
                annotations=annotations,
            ),
        ],
    )
    manifest_dict = manifest.as_dict()
    assert 'annotations' in manifest_dict['config']
    assert manifest_dict['config']['annotations'] == annotations
    assert 'annotations' in manifest_dict['layers'][0]
    assert manifest_dict['layers'][0]['annotations'] == annotations