code: def test_idx_based():
      ftdf = _ftdf()
      ft_clf = IdxBasedFtClassifier(0)
      ft_clf.fit(ftdf[["txt"]], ftdf["lbl"])
  
      assert ft_clf.predict([["woof woof"]])[0] == 0
      assert ft_clf.predict([["meow meow"]])[0] == 1
      assert ft_clf.predict([["meow"]])[0] == 1
      assert ft_clf.predict([["woof lol"]])[0] == 0
      assert ft_clf.predict([["meow lolz"]])[0] == 1
  
imports: import pytest
  import pandas
  from sklearn.model_selection import cross_val_score
  from skift import FirstColFtClassifier, IdxBasedFtClassifier, ColLblBasedFtClassifier, FirstObjFtClassifier, SeriesFtClassifier
label_desc: Use image node_id 14 for calling a global function with example usage: test_idx_based() without return types