code: def _add_intermol_molecule_type(intermol_system, parent):
          
          from intermol.moleculetype import MoleculeType
          from intermol.forces.bond import Bond as InterMolBond
  
          molecule_type = MoleculeType(name=parent.name)
          intermol_system.add_molecule_type(molecule_type)
  
          for index, parent_atom in enumerate(parent.particles()):
              parent_atom.index = index + 1
  
          for atom1, atom2 in parent.bonds():
              intermol_bond = InterMolBond(atom1.index, atom2.index)
              molecule_type.bonds.add(intermol_bond)
docs: Create a molecule type for the parent and add bonds.