docs: def validate_jhove(filename, jhove=None, ignore=None):
      """Validate TIFF file using jhove -m TIFF-hul.
  
      Raise ValueError if jhove outputs an error message unless the message
      contains one of the strings in 'ignore'.
  
      JHOVE does not support bigtiff or more than 50 IFDs.
  
      See `JHOVE TIFF-hul Module <http://jhove.sourceforge.net/tiff-hul.html>`_
  
      """
      import subprocess  # noqa: delayed import
      if ignore is None:
          ignore = ['More than 50 IFDs']
      if jhove is None:
          jhove = 'jhove'
      out = subprocess.check_output([jhove, filename, '-m', 'TIFF-hul'])
      if b'ErrorMessage: ' in out:
          for line in out.splitlines():
              line = line.strip()
              if line.startswith(b'ErrorMessage: '):
                  error = line[14:].decode('utf8')
                  for i in ignore:
                      if i in error:
                          break
                  else:
                      raise ValueError(error)
                  break