how to use Cuckoo algorithm for selection in project?

SwarmPackagePy.cso(n, function, lb, ub, dimension, iteration, pa=0.25, nest=100)
I have 40 features in my dataset.How to use dataset in the above code?