How verify function implemented?
<p>I want to find how <code>verify()</code> function from <code>Pillow</code> library implemented. In a source code i found only this:</p>

<pre><code>def verify(self):
    """
    Verifies the contents of a file. For data read from a file, this
    method attempts to determine if the file is broken, without
    actually decoding the image data.  If this method finds any
    problems, it raises suitable exceptions.  If you need to load
    the image after using this method, you must reopen the image
    file.
    """
    pass
</code></pre>

<p>Where i can find implementation?</p>

<p>(source code i found here: <a href="https://pillow.readthedocs.io/en/3.0.0/_modules/PIL/Image.html#Image.verify" rel="nofollow">Pillow source code</a> )</p>