<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def destroy_all_models_in_dict(target_dict):
 """ Method runs the prepare destruction method of models which are assumed in list or tuple as values within a dict """

        if target_dict:
            for model_list in target_dict.values():
                if isinstance(model_list, (list, tuple)):
                    for model in model_list:
                        model.prepare_destruction()
                        if model._parent:
                            model._parent = None
                else:
                    raise Exception("wrong data in clipboard")