def METHOD_NAME(each_item, path):
    obj = each_item
    try:
        for part in path.split('.'):
            obj = obj.get(part, None)
    except AttributeError:
        obj = None
    return obj or ' '