def _dict_subset(keys, master_dict):
    return dict([(k, v) for k, v in six.iteritems(master_dict) if k in keys])
:type step_inputs: dict
dataset/ETHPy150Open saltstack/salt/salt/modules/event.py/_dict_subset--crossover with--dataset/ETHPy150Open zomux/deepy/deepy/layers/recurrent.py/RecurrentLayer.compute_new_state