class_docstr: Unit tests for OIVF. Some of these unit tests first copy the required test data objects and puts them in the tempdir created by the context manager.
class_docstr_tok: ["Unit","tests","for","OIVF",".","Some","of","these","unit","tests","first","copy","the","required","test","data","objects","and","puts","them","in","the","tempdir","created","by","the","context","manager","."]
docstr: Test the OIVF consistency check step, that it throws if no other steps have been ran.
docstr_tok: ["Test","the","OIVF","consistency","check","step",",","that","it","throws","if","no","other","steps","have","been","ran","."]
code: def test_consistency_check(self) -> None:
      """
      Test the OIVF consistency check step, that it throws if no other steps have been ran.
      """
      with tempfile.TemporaryDirectory() as tmpdirname:
          data_creator = TestDataCreator(
              tempdir=tmpdirname,
              dimension=8,
              data_type=np.float16,
              index_factory=["OPQ4,IVF256,PQ4"],
              training_sample=9984,
              num_files=3,
              file_size=10000,
              nprobe=2,
              k=2,
              metric="METRIC_L2",
          )
          data_creator.create_test_data()
          test_args = data_creator.setup_cli("consistency_check")
          self.assertRaises(
              AssertionError, process_options_and_run_jobs, test_args
          )
  
file_path: faiss/demos/offline_ivf/tests/test_offline_ivf.py
imports: import numpy
  import unittest
  from utils import load_config
  import pathlib
  import tempfile
  from typing import List
  from tests.testing_utils import TestDataCreator
  from run import process_options_and_run_jobs
label_desc: Use image node_id 2 for calling the TestOIVF obj's underlying member method code with example usage: obj.test_consistency_check() without return types