code: def get_functions(module):
      # Enumerate functions from a module
  
      # Normal functions
      for k, o in module.__dict__.items():
          if isinstance(
              o, types.FunctionType
          ) and o.__module__.startswith(module_prefix):
              yield o
  
      # Methods defined in a class
      for cls in get_classes(module):
          if cls.__module__.startswith(module_prefix):
              for k, o in cls.__dict__.items():
                  if inspect.isfunction(o):
                      yield o
  
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 3 for calling a global function with example usage: get_functions(module) without return types