class_docstr: here we test only the synthetic dataset. Datasets that require
  disk or manifold access are in
  //deeplearning/projects/faiss-forge/test_faiss_datasets/:test_faiss_datasets
class_docstr_tok: ["here","we","test","only","the","synthetic","dataset",".","Datasets","that","require","disk","or","manifold","access","are","in","\/\/deeplearning\/projects\/faiss-forge\/test_faiss_datasets\/",":","test_faiss_datasets"]
code: def test_synthetic_ip(self):
      ds = datasets.SyntheticDataset(32, 1000, 2000, 10, "IP")
      index = faiss.IndexFlatIP(32)
      index.add(ds.get_database())
      np.testing.assert_array_equal(
          ds.get_groundtruth(100),
          index.search(ds.get_queries(), 100)[1],
      )
  
imports: import faiss
  import unittest
  import numpy
  import platform
  import os
  import random
  import tempfile
  from faiss.contrib import datasets
  from faiss.contrib import inspect_tools
  from faiss.contrib import evaluation
  from faiss.contrib import ivf_tools
  from faiss.contrib import clustering
  from faiss.contrib import big_batch_search
  from common_faiss_tests import get_dataset_2
label_desc: Use image node_id 2 for calling the TestDatasets obj's underlying member method code with example usage: obj.test_synthetic_ip() without return types