def METHOD_NAME(spc, solvent_name=''):
    """
    Module-level function passed to workers.
    generates a thermodata object for the 
    identifier and stores it in the 
    thermo database.
    Next, thermo is generated of this species.
    """
    logging.debug("Evaluating spc %s ", spc)
    if isinstance(spc.molecule[0], Molecule):
        spc.generate_resonance_structures()
        thermo = generate_thermo_data(spc, solvent_name=solvent_name)
    else:
        # assume it's a species for Fragment
        spc.molecule[0].assign_representative_species()
        spc_repr = spc.molecule[0].species_repr
        spc_repr.generate_resonance_structures()
        thermo = generate_thermo_data(spc_repr, solvent_name=solvent_name)
    return thermo