def METHOD_NAME(cubes_with_wrong_air_pressure):
    """Test ``fix_metadata`` for ``zg``."""
    vardef = get_var_info('CMIP6', 'Amon', 'zg')
    fix = Zg(vardef)
    out_cubes = fix.fix_metadata(cubes_with_wrong_air_pressure)
    assert len(out_cubes) == 2
    hus_cube = out_cubes.extract_cube('hus')
    zg_cube = out_cubes.extract_cube('zg')
    assert hus_cube.var_name == 'hus'
    assert zg_cube.var_name == 'zg'
    np.testing.assert_allclose(hus_cube.coord('air_pressure').points,
                               [1000.09, 600.6, 200.0])
    np.testing.assert_allclose(hus_cube.coord('air_pressure').bounds,
                               [[1200.00001, 800], [800, 400.8], [400.8, 1.9]])
    np.testing.assert_allclose(zg_cube.coord('air_pressure').points,
                               [1000.0, 601.0, 200.0])
    np.testing.assert_allclose(zg_cube.coord('air_pressure').bounds,
                               [[1200.0, 800.0], [800.0, 401.0], [401.0, 2.0]])