I am using lazy-loader for lazy importing. However, I found that sphinx-autdoc2 cannot generate docs for lazily imported functions, classes, etc.
Here is a simple demo where docs for normal functions is generated correctly while docs for lazily imported functions is missing.
I guess this is because sphinx-autodoc2 extracts the contents by parsing the syntax tree directly, rather than evaluating the python script.