def _save(path, obj):
        "Save an object to the specified path."
        data = zlib.compress(pickletools.optimize(pickle.dumps(obj)), 9)
        with open(path, 'wb') as file:
            file.write(data)
Save an object to the specified path.
recipes/Python/578195_Setting_Namespaces/recipe-578195.py