docs: def _make_resource_from_inline(reference):
      """Makes an ``models.Resource`` from a ``models.Reference``
         of type INLINE. That is, a data: uri"""
      uri = DataURI(reference.uri)
      data = io.BytesIO(uri.data)
      mimetype = uri.mimetype
      res = Resource('dummy', data, mimetype)
      res.id = res.filename
      return res