def fragment_parent_smiles(smiles, prefer_organic=False):
mol = Chem.MolFromSmiles(smiles, sanitize=False)<EOL>mol = Standardizer(prefer_organic=prefer_organic).fragment_parent(mol)<EOL>return Chem.MolToSmiles(mol, isomericSmiles=True)<EOL>
Utility function that returns the fragment parent SMILES for given a SMILES string.