def METHOD_NAME(product):
    """Test ``_update_attributes``."""
    product._cubes[0].attributes.pop('frequency')
    product.attributes.pop('frequency')
    product._update_attributes()
    assert product.attributes == {
        'filename': Path('file.nc'),
        'standard_name': 'air_temperature',
        'long_name': 'Near-Surface Air Temperature',
        'short_name': 'tas',
        'units': 'K',
    }
    assert isinstance(product.attributes['units'], str)