def _DeepCopySomeKeys(in_dict, keys):
 d = {}
 for key in keys:
  if (key not in in_dict):
   continue
  d[key] = copy.deepcopy(in_dict[key])
 return d

def _DeepCopySomeKeys ( in_dict , keys ) : d = { } for key in keys : if ( key not in in_dict ) : continue d [ key ] = copy . deepcopy ( in_dict [ key ] ) return d
performs a partial deep-copy on |in_dict| .