docstr: compare with LSQ when nsplits = 1
docstr_tok: ["compare","with","LSQ","when","nsplits","=","1"]
code: def test_with_lsq(self):
      """compare with LSQ when nsplits = 1"""
      ds = datasets.SyntheticDataset(32, 3000, 3000, 0)
  
      xt = ds.get_train()
      xb = ds.get_database()
  
      M = 4
      nbits = 4
  
      plsq = faiss.ProductLocalSearchQuantizer(ds.d, 1, M, nbits)
      plsq.train(xt)
      err_plsq = eval_codec(plsq, xb)
  
      lsq = faiss.LocalSearchQuantizer(ds.d, M, nbits)
      lsq.train(xt)
      err_lsq = eval_codec(lsq, xb)
  
      print(err_plsq, err_lsq)
      self.assertEqual(err_plsq, err_lsq)
  
imports: import numpy
  import faiss
  import unittest
  from faiss.contrib import datasets
label_desc: Use image node_id 2 for calling the TestProductLocalSearchQuantizer obj's underlying member method code with example usage: obj.test_with_lsq() without return types