def call(cluster, logdir, cmd):
    try:
        args = cmd.split()
        fn = commands.get(args[0])
        if fn:
            return fn(cluster, logdir, cmd, *args[1:])
        else:
            StarCommand(star_help)(cluster, logdir, cmd)
            return None
    except Exception as e:
        logger = logging.getLogger('radssh')
        logger.error('Invoking *command failed: %s', repr(e))
        logger.debug(traceback.format_exc())
        print('Invoking *command failed:', repr(e))
*command caller
dataset/ETHPy150Open radssh/radssh/radssh/star_commands.py/call