import dill


def loadUsingDill(filePath):
    """
    open and retrieve the contents of a file

    use this when opening a file that contains a complex Class object,
    if the object is "simple" use the function loadPickledData()

    Parameters:
    - filePath: either the relative path or the absolute path
    """
    with open(filePath, "rb") as f:
        print("unpickling content in {filePath}")
        return dill.load(f)