def METHOD_NAME(self, atom_ndx):
    # The format for all record is (type, atom1, atom2, ...)
    # but we are only interested in the atoms.
    for cursor in range(0, len(atom_ndx), self.natoms + 1):
        yield atom_ndx[cursor + 1: cursor + 1 + self.natoms]