docs: def imagej_description_metadata(description):
      """Return metatata from ImageJ image description as dict.
  
      Raise ValueError if not a valid ImageJ description.
  
      >>> description = 'ImageJ=1.11a\\nimages=510\\nhyperstack=true\\n'
      >>> imagej_description_metadata(description)  # doctest: +SKIP
      {'ImageJ': '1.11a', 'images': 510, 'hyperstack': True}
  
      """
      def _bool(val):
          return {'true': True, 'false': False}[val.lower()]
  
      result = {}
      for line in description.splitlines():
          try:
              key, val = line.split('=')
          except Exception:
              continue
          key = key.strip()
          val = val.strip()
          for dtype in (int, float, _bool):
              try:
                  val = dtype(val)
                  break
              except Exception:
                  pass
          result[key] = val
  
      if 'ImageJ' not in result:
          raise ValueError('not a ImageJ image description')
      return result