Implementation of Isolated forest in python

I am new to machine learning and trying to learn and implement the isolation forest algorithm in python

My Input contains 40 features and train contains 4000 and test contains 1000 records.Can someone help with a sample code and how to plot the output