code: def save_module(self, obj):
          
          self.modules.add(obj)
          if _is_dynamic(obj):
              self.save_reduce(dynamic_subimport, (obj.__name__, vars(obj)),
                               obj=obj)
          else:
              self.save_reduce(subimport, (obj.__name__,), obj=obj)
docs: Save a module as an import