Added docstring according to CODING_STYLE, removed explicit importing of base_utils , modified importing order and added None validation @clebergnu suggestion