def _iter_command_classes(module_name):
    for module in walk_modules(module_name):
        for obj in vars(module).itervalues():
            if inspect.isclass(obj) and \
               issubclass(obj, BaseCommand) and \
               obj.__module__ == module.__name__:
                yield obj
generator for getting cmd
dataset/ETHPy150Open idumpling/robotx/robotx/core/__init__.py/_iter_command_classes