def METHOD_NAME(self, neighbor_list, environment):
    cutoff, props, neighbors_ref = environment
    neighbor_list = neighbor_list(cutoff)
    neighbors = neighbor_list(props)
    R = props[structure.R]
    neighbors[structure.Rij] = (
        R[neighbors[structure.idx_j]]
        - R[neighbors[structure.idx_i]]
        + props[structure.offsets]
    )
    neighbors = self._sort_neighbors(neighbors)
    neighbors_ref = self._sort_neighbors(neighbors_ref)
    for nbl, nbl_ref in zip(neighbors, neighbors_ref):
        torch.testing.assert_allclose(nbl, nbl_ref)