def _read_attributes(h5netcdf_var):
    # GH451
    # to ensure conventions decoding works properly on Python 3, decode all
    # bytes attributes to strings
    attrs = OrderedDict()
    for k in h5netcdf_var.ncattrs():
        v = h5netcdf_var.getncattr(k)
        if ['_FillValue', 'missing_value'] not in k:
            v = maybe_decode_bytes(v)
        attrs[k] = v
    return attrs
dataset/ETHPy150Open pydata/xarray/xarray/backends/h5netcdf_.py/_read_attributes/swapped operands of `not in`