from functools import reduce
import operator


def get_location(nested_dict=None, keys_list=None):
    """
    Description
    -----------
    Static function to get a value of a nested key from a nested dictionary
    :param nested_dict: Nested dictionary from which the nested value is to be retrieved
    :param keys_list: The verbose keys corresponding to the desired value being passed in
                     as a python list of list
    :return: The expected value corresponding to the provided nested keys
    """
    if keys_list is None:
        keys_list = []
    if nested_dict is None:
        nested_dict = {}
    return reduce(operator.getitem, keys_list, nested_dict)