<span>Expand source code</span>
</summary>
<pre><code class="python">from matplotlib.patches import Ellipse, Circle, FancyArrowPatch,FancyBboxPatch
from textwrap import wrap
import pandas as pd
from rdkit import Chem
import io 
from rdkit.Chem import rdDepictor
from rdkit.Chem.Draw import rdMolDraw2D, MolToImage
from rdkit.Chem.rdDepictor import GenerateDepictionMatching2DStructure
from rdkit.Chem.Draw.MolDrawing import DrawingOptions
import re

from genra.utl.svg import *

class ChemBase:
  def __init__(se