def METHOD_NAME(mol: Chem.rdchem.Mol, **kwargs) -> widgets.Image:
    """Generated a ipywidget.Image of a molecule from a rkit Mol"""
    d2d = Chem.Draw.MolDraw2DSVG(300, 300)
    d2d.DrawMolecule(mol)
    d2d.FinishDrawing()
    text = d2d.GetDrawingText()
    return widgets.Image(value=text.encode("utf-8"), format="svg+xml", **kwargs)