<s> from __future__ import absolute_import , unicode_literals <EOL> from wagtail . wagtailcore . permission_policies . collections import CollectionOwnershipPermissionPolicy <EOL> from wagtail . wagtailimages . models import Image , get_image_model <EOL> permission_policy = CollectionOwnershipPermissionPolicy ( <EOL> get_image_model ( ) , <EOL> auth_model = Image , <EOL> owner_field_name = '<STR_LIT>' <EOL> ) </s>
