Parse CTAB text and return first one as a Compound object.

    Throws:
        StopIteration: if the text does not have molecule
        ValueError: if Unsupported symbol is found

def mol_from_text(text, assign_descriptors=True):
    """Parse CTAB text and return first one as a Compound object.

    Throws:
        StopIteration: if the text does not have molecule
        ValueError: if Unsupported symbol is found
    """
    cg = mols_from_text(text, False, assign_descriptors)
    return next(cg)