code: def find_modules(path):
      modules = set()
      for pkg in find_packages(path):
          modules.add(pkg)
          pkgpath = path + "/" + pkg.replace(".", "/")
          if sys.version_info.major == 2 or (
              sys.version_info.major == 3 and sys.version_info.minor < 6
          ):
              for _, name, ispkg in iter_modules([pkgpath]):
                  if not ispkg:
                      modules.add(pkg + "." + name)
          else:
              for info in iter_modules([pkgpath]):
                  if not info.ispkg:
                      modules.add(pkg + "." + info.name)
      return modules
  
file_path: statsmodels/tools/releasing/enumerate-api.py
imports: from setuptools import find_packages
  import argparse
  import importlib
  import inspect
  import json
  import logging
  import os
  from pkgutil import iter_modules
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: find_modules(path) and returns: modules