docs: def image_resolution(self) -> Optional[Tuple[int, int]]:
          r"""(:class:`~typing.Optional`\ [:class:`~typing.Tuple`\ [:class:`int`,
          :class:`int`]]) The (width, height) pair of the image.
          It may be :const:`None` if it's not an image.
  
          """
          images = self.attributes.get('imageinfo', [])
          if images and isinstance(images, collections.abc.Sequence):
              img = images[0]
              return img['width'], img['height']
          return None