def cmd_subset(
            self,
            tgt,
            fun,
            arg=(),
            expr_form='glob',
            ret='',
            kwarg=None,
            sub=3,
            cli=False,
            progress=False,
            **kwargs):
        group = self.cmd(tgt, 'sys.list_functions', expr_form=expr_form, **kwargs)
        f_tgt = []
        for minion, ret in six.iteritems(group):
            if len(f_tgt) >= sub:
                break
            if fun in ret:
                f_tgt.append(minion)
        func = self.cmd
        if cli:
            func = self.cmd_cli
        return func(
                f_tgt,
                fun,
                arg,
                expr_form='list',
                ret=ret,
                kwarg=kwarg,
                progress=progress,
                **kwargs)
Run the model forward and store each viz state.
dataset/ETHPy150Open saltstack/salt/salt/client/__init__.py/LocalClient.cmd_subset--crossover with--dataset/ETHPy150Open projectmesa/mesa/mesa/visualization/ModularVisualization.py/ModularServer.run_model