code: def add_module_doctest(base, module_name):
      module = getattr(base, module_name)
      if inspect.ismodule(module):
          setattr(
              TestDoctest,
              "test_" + module_name,
              lambda self: generic_test_package(self, module),
          )
  
file_path: pythran/pythran/tests/test_xdoc.py
imports: import doctest
  import inspect
  import os
  import pytest
  import sys
  import unittest
  import pythran
  from pythran import transformations, analyses, optimizations, types, log
label_desc: Use image node_id 2 for calling a global function with example usage: add_module_doctest(base, module_name) without return types