def METHOD_NAME(self):
    obj1 = ImageDisplay()
    view = View(
        Item(
            'image',
            editor=ImageEditor(
                image=ImageResource(filename1),
            ),
        )
    )
    # This should not fail.
    with create_ui(obj1, dict(view=view)) as ui:
        pass