def METHOD_NAME(self, resource):
    params_model = {}
    current_freeform_tags = resource.get("freeform_tags")
    current_defined_tags = resource.get("defined_tags")
    if self.data.get("freeform_tags"):
        delete_tag_lists = self.data.get("freeform_tags")
        for tag in delete_tag_lists:
            if tag in current_freeform_tags:
                current_freeform_tags.pop(tag)
            else:
                log.info("%s tag does not exists.", tag)
    if self.data.get("defined_tags"):
        delete_tag_lists = self.data.get("defined_tags")
        for tag in delete_tag_lists:
            splits = tag.split(".")
            if len(splits) == 2 and (splits[0] in current_defined_tags):
                namespace = current_defined_tags.get(splits[0])
                if splits[1] in namespace:
                    namespace.pop(splits[1])
                else:
                    log.info("%s tag does not exists", splits[1])
            else:
                log.info(
                    (
                        "Defined %s namespace might be wrong or does not exists in the"
                        " resource - %s"
                    ),
                    splits[0],
                    resource.get("name"),
                )
    params_model["freeform_tags"] = current_freeform_tags
    params_model["defined_tags"] = current_defined_tags
    return params_model