def test_negative_scalar_index(adata, index: int, obs: bool):
    pos_index = index + (adata.n_obs if obs else adata.n_vars)

    if obs:
        adata_pos_subset = adata[pos_index]
        adata_neg_subset = adata[index]
    else:
        adata_pos_subset = adata[:, pos_index]
        adata_neg_subset = adata[:, index]

    np.testing.assert_array_equal(
        adata_pos_subset.obs_names, adata_neg_subset.obs_names
    )
    np.testing.assert_array_equal(
        adata_pos_subset.var_names, adata_neg_subset.var_names
    )
def _genSeq(self):
        self.raw_sequence = random.getrandbits(64)
        parts = []
        while self.raw_sequence:
            parts.append(self.raw_sequence & limit)
            self.raw_sequence >>= 32

        self.sequence = struct.pack('<' + 'L'*len(parts), *parts)
        # struct.unpack('<LL', '\xb1l\x1c\xb1\x11"\x10\xf4')
        return 0