code: def test_invalid_format(self):
      with pytest.raises(
          ValueError, match="Unknown format: invalid_format"
      ):
          SerializationExtensions.from_format("invalid_format")
  
file_path: responsible-ai-toolbox/responsibleai/tests/tools/shared/test_attribute_serialization.py
imports: import pytest
  from responsibleai._tools.shared.attribute_serialization import SerializationExtensions, SerializationFormats, load_attributes, save_attributes
label_desc: Use image node_id 1 for calling the TestAttributeSerialization obj's underlying member method code with example usage: obj.test_invalid_format() without return types