@staticmethod
def nested_set(dict, keys, value, key_delimiter='.'):
    """ Set the value of a nested dictionary at the nested key sequence `keys`

        Args:
            dict (:obj:`dict`): dictionary to retrieve value from
            keys (:obj:`str` or :obj:`list`): list of nested keys to retrieve
            value (:obj:`object`): desired value of `dict` at key sequence `keys`
            key_delimiter (:obj:`str`, optional): delimiter for `keys`

        Returns:
            :obj:`object`: Modified input dictionary
        """
    if isinstance(keys, str):
        keys = keys.split(key_delimiter)
    last_key = keys.pop()
    nested_dict = dict
    for key in keys:
        if key not in nested_dict:
            nested_dict[key] = {}
        nested_dict = nested_dict[key]
    nested_dict[last_key] = value
    return dict
