code: def test_clone_size(self):
      index = faiss.index_factory(20, "PCA10,Flat")
      xb = faiss.rand((100, 20))
      index.train(xb)
      index.add(xb)
      index2 = faiss.clone_index(index)
      assert index2.ntotal == 100
  
imports: import numpy
  import unittest
  import gc
  import faiss
  from faiss.contrib import factory_tools
  from faiss.contrib import datasets
label_desc: Use image node_id 1 for calling the TestCloneSize obj's underlying member method code with example usage: obj.test_clone_size() without return types