def METHOD_NAME(data_):
    for key, value in data_.items():
        if key == "@context" and isinstance(value, dict):
            remove_type(value)
        if key == "@type":
            if not isinstance(value, str):
                value = str(sorted(value))
            new_type = type_mapping.get(value)
            if new_type:
                data_[key] = new_type
        elif isinstance(value, dict):
            METHOD_NAME(value)
        elif isinstance(value, (list, tuple, set)):
            for v in value:
                if isinstance(v, dict):
                    METHOD_NAME(v)