Utils.build_module()

in the first lab he used this function: utils.build_module() so my question is: using this function does it creates nn automatically and randomly or am I missing something

You can read the function code by using the File->Open menu, then open the utils.py file.