'Returns an
:py:class:`~PIL.TiffImagePlugin.ImageFileDirectory_v2`
instance with the same data as is contained in the original
:py:class:`~PIL.TiffImagePlugin.ImageFileDirectory_v1`
instance.
:returns: :py:class:`~PIL.TiffImagePlugin.ImageFileDirectory_v2`'

def to_v2(self):

    ifd = ImageFileDirectory_v2(prefix=self.prefix)
    ifd._tagdata = dict(self._tagdata)
    ifd.tagtype = dict(self.tagtype)
    ifd._tags_v2 = dict(self._tags_v2)
    return ifd
