(dict_ins, keys)
return {k: dict_ins[k] for k in dict_ins if k in keys}
Filters out unwanted keys of a dict.
Filters out unwanted keys of a dict.
Filters out unwanted keys of a dict .
def _only_keys(dict_ins, keys):
    """
    Filters out unwanted keys of a dict.
    """
    return {k: dict_ins[k] for k in dict_ins if k in keys}
def _only_keys ( dict_ins , keys ) : return { k : dict_ins [ k ] for k in dict_ins if k in keys }