code: def atom_by_serialnumber(self):
          
          atm_by_snum = {}
          for atom in self.model.atoms:
              atm_by_snum[atom.serialNumber] = atom
          return atm_by_snum
docs: Provides a dictionary mapping serial numbers to their atom objects.