code: def _apply_mask(
      data: np.ndarray,
      encoded_fill_values: list,
      decoded_fill_value: Any,
      dtype: Any,
  ) -> np.ndarray:
      
      data = np.asarray(data, dtype=dtype)
      condition = False
      for fv in encoded_fill_values:
          condition |= data == fv
      return np.where(condition, decoded_fill_value, data)
docs: Mask all matching values in a NumPy arrays.