code: def test_invalid_save_freq(tmp_path):
      test_model_filepath = str(tmp_path / "test_model.h5")
      save_freq = "invalid_save_freq"
      with pytest.raises(ValueError, match="Unrecognized save_freq"):
          AverageModelCheckpoint(
              update_weights=True,
              filepath=test_model_filepath,
              save_freq=save_freq,
          )
  
file_path: addons/tensorflow_addons/callbacks/tests/avg_model_checkpoint_test.py
imports: import os
  import pytest
  import tensorflow
  from tensorflow import keras
  from tensorflow_addons.callbacks import AverageModelCheckpoint
  from tensorflow_addons.optimizers import MovingAverage
label_desc: Use image node_id 11 for calling a global function with example usage: test_invalid_save_freq(tmp_path) without return types