import pickle


def load_dictionary(fname):
    """
    Given a fname, function loads a `pkl` dictionary
    from the current directory

    Args:
        fname ([str]): Enter the filename

    Returns:
        [dict]: Returns the loaded pkl file as a
                dict
    """
    fname = open(fname, 'rb')
    data = pickle.load(fname)
    return data