code: def test_create_index_IVFFlat(self):
      infinity_obj = infinity.connect(REMOTE_HOST)
      db_obj = infinity_obj.get_database("default")
      res = db_obj.drop_table("test_index_ivfflat", True)
      assert res.success
      table_obj = db_obj.create_table(
          "test_index_ivfflat", {"c1": "vector,1024,float"}, None
      )
      assert table_obj is not None
  
      res = table_obj.create_index(
          "my_index",
          [
              index.IndexInfo(
                  "c1",
                  index.IndexType.IVFFlat,
                  [
                      index.InitParameter("centroids_count", "128"),
                      index.InitParameter("metric", "l2"),
                  ],
              )
          ],
          None,
      )
      assert res.success
  
      res = table_obj.drop_index("my_index")
      assert res.success
  
imports: import infinity
  import infinity.index
  from infinity.common import REMOTE_HOST
label_desc: Use image node_id 1 for calling the TestIndex obj's underlying member method code with example usage: obj.test_create_index_IVFFlat() without return types