check whether the return type of the comments is dict