[DCL-1] Adding doctests for all the methods in utils.py