please check armor/tests/imageToDataMethodTest.py for illustration