def durable_hash(item, ephemeral_paths):
 durable_item = deepcopy(item)
 for path in ephemeral_paths:
  try:
   dpath.util.delete(durable_item, path, separator='$')
  except PathNotFound:
   pass
 return hash_config(durable_item)

def durable_hash ( item , ephemeral_paths ) : durable_item = deepcopy ( item ) for path in ephemeral_paths : try : dpath . util . delete ( durable_item , path , separator = '$' ) except PathNotFound : pass return hash_config ( durable_item )
remove all ephemeral paths from the item and return the hash of the new structure .