def get_id_from_ref(ref):
    ref_id = None
    if ref is not None and len(ref) > 0:
        ref_id = path.split(ref)[1]
    return ref_id
Returns d with empty ('' or None) values stripped
dataset/ETHPy150Open openstack/python-barbicanclient/functionaltests/utils.py/get_id_from_ref--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/utils/__init__.py/remove_blanks