def METHOD_NAME(value):
    """Ensure proper error is being raised for values that can't be converted."""
    with pytest.raises(ValueError, match=r"Value \S+ is invalid."):
        NodeResources._convert_memory_bytes(value)