def METHOD_NAME(analysis_data: dict, key: str, value):
    if isinstance(value, dict):
        sanitize(value)
    elif isinstance(value, str):
        analysis_data[key] = _sanitize_string(value)
    elif isinstance(value, list):
        _sanitize_list(value)
    elif isinstance(value, bytes):
        logging.warning(
            f'Plugin result contains bytes entry. '
            f'Plugin results should only contain JSON compatible data structures!:\n\t{value!r}'
        )
        analysis_data[key] = value.decode(errors='replace')