

def import_pickle(filename):
    fh = None
    try:
        fh = open(filename, 'rb')
        mydict2 = pickle.load(fh)
        return mydict2
    except EnvironmentError as err:
        print('{0}: import error: {0}'.format(os.path.basename(sys.arg[0]), err))
        return false
    finally:
        if (fh is not None):
            fh.close()

dataset/ETHPy150Open bt3gl/Python-and-Algorithms-and-Data-Structures/src/USEFUL/basic_examples/example_pickle.py import_pickle/original