@classmethod
    def get_module(cls, action, args):
        if len(args) <= 2:
            return None
        elif args[2] in ACTION_MAP[action]:
            return args[2]
        return "invalid"
This method returns a module.
dataset/ETHPy150Open openstack/compass-core/compass/actions/cli.py/BootCLI.get_module