code: def walk_modules():
      root = chainer.__path__
      for loader, modname, ispkg in pkgutil.walk_packages(
          root, module_prefix
      ):
          # Skip modules generated by protobuf.
          if "_pb2" in modname:
              continue
  
          try:
              mod = importlib.import_module(modname)
          except ImportError:
              continue
  
          yield mod
  
file_path: chainer/tests/chainer_tests/test_chainer_objects.py
imports: import importlib
  import inspect
  import pkgutil
  import types
  import unittest
  import six
  import chainer
  from chainer import testing
label_desc: Use image node_id 1 for calling a global function with example usage: walk_modules() without return types