docstr: target: test import data to remote server
  method: connect server, create table, import data, search, drop table, disconnect
  expect: all operations successfully
docstr_tok: ["target",":","test","import","data","to","remote","server","method",":","connect","server",",","create","table",",","import","data",",","search",",","drop","table",",","disconnect","expect",":","all","operations","successfully"]
code: def test_import(self):
      """
      target: test import data to remote server
      method: connect server, create table, import data, search, drop table, disconnect
      expect: all operations successfully
      """
  
      infinity_obj = infinity.connect(REMOTE_HOST)
      assert infinity_obj
  
      # infinity
  
      db_obj = infinity_obj.get_database("default")
      assert db_obj
  
      # import
      db_obj.drop_table("test_import", True)
      table_obj = db_obj.create_table(
          "test_import", {"c1": "int", "c2": "vector,3,int"}, None
      )
  
      test_dir = "/tmp/infinity/test_data/"
      test_csv_dir = test_dir + "embedding_int_dim3.csv"
      assert os.path.exists(test_csv_dir)
  
      res = table_obj.import_data(test_csv_dir, None)
      assert res.success
  
      # search
      res = table_obj.output(["c1"]).filter("c1 > 1").to_df()
      print(res)
      res = db_obj.drop_table("test_import")
      assert res.success
  
imports: import os
  import infinity
  from infinity.common import REMOTE_HOST
label_desc: Use image node_id 2 for calling the TestImport obj's underlying member method code with example usage: obj.test_import() without return types