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(self):
      ds = datasets.SyntheticDataset(32, 1000, 2000, 10)
      xq = ds.get_queries()
      self.assertEqual(xq.shape, (10, 32))
      xb = ds.get_database()
      self.assertEqual(xb.shape, (2000, 32))
      ds.check_sizes()
  
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 1 for calling the TestDatasets obj's underlying member method code with example usage: obj.test_synthetic() without return types