code: def module_build(self, module, modname=None):
          
          node = None
          path = getattr(module, "__file__", None)
          if path is not None:
              path_, ext = os.path.splitext(modutils._path_from_filename(path))
              if ext in (".py", ".pyc", ".pyo") and os.path.exists(path_ + ".py"):
                  node = self.file_build(path_ + ".py", modname)
          if node is None:
              # this is a built-in module
              # get a partial representation by introspection
              node = self.inspect_build(module, modname=modname, path=path)
              if self._apply_transforms:
                  # We have to handle transformation by ourselves since the
                  # rebuilder isn't called for builtin nodes
                  node = self._manager.visit_transforms(node)
          return node
docs: Build an astroid from a living module instance.