def get_nested_dict_entry_from_namespace_path(d, namespace_path):
    """Obtain the entry from a nested dictionary that corresponds to the path given in namespace format.

    A namespace path specifies the keys of the nested dictionary as a dot-separated string (e.g., "key1.key2.key3").

    :param d: The nested dictionary to traverse (dict)
    :param namespace_path: A dot-separated string containing the keys used to traverse the dictionary (str)
    :return: object
    """
    # Try to split off the namespace path into the first key and the rest of the keys
    split_namespace_path = namespace_path.split('.', 1)
    if len(split_namespace_path) == 1:
        # Only one key for a non-nested dict; return the result
        return d[split_namespace_path[0]]
    else:
        cur_key, path_remainder = split_namespace_path
        return get_nested_dict_entry_from_namespace_path(d[cur_key], path_remainder)