def METHOD_NAME(d: Any) -> Any:
    """Recursively go through dictionary and strip lines of all encountered strings."""
    if isinstance(d, str):
        return _strip_lines(d)
    elif isinstance(d, list):
        return [METHOD_NAME(e) for e in d]
    elif isinstance(d, dict):
        return {k: METHOD_NAME(v) for k, v in d.items()}
    else:
        return d