def _get_neighbor_species(m):
    """
    Args:
        m: A dictionary representing a molecule entry in LIBE

    Returns:
        A list of tuple (atom species, bonded atom species),
        where `bonded_atom_species` is a list.
        Each tuple represents an atom and its bonds.
    """
    res = [(s, list()) for s in m["species"]]
    for a1, a2 in m["bonds"]:
        s1 = m["species"][a1]
        s2 = m["species"][a2]
        res[a1][1].append(s2)
        res[a2][1].append(s1)
    return res