def METHOD_NAME(value, expected_result, attr_value):
    """Ensure cpu data is being converted appropriately."""
    converted_value = NodeResources._convert_cpu_value(value)
    assert converted_value == expected_result
    node_resource = NodeResources(cpu=value)
    assert node_resource.cpu == attr_value