def METHOD_NAME(image_filename):
    """
    Create :py:class:`~ocrd_models.ocrd_exif.OcrdExif`
    by opening an image file with PIL and reading its metadata.
    Arguments:
        image_filename (str): Local image path name (relative to workspace).
    """
    if image_filename is None:
        raise Exception("Must pass 'image_filename' to 'exif_from_filename'")
    with Image.open(image_filename) as pil_img:
        ocrd_exif = OcrdExif(pil_img)
    return ocrd_exif