Before running examples, install ims library: 

pip install imslib