code: def test_missing_attribute_fail(self, tmpdir):
      save_dir = tmpdir.mkdir("save-dir")
  
      example = Example(a="A", b="B", c="C")
  
      save_attributes(
          example,
          ["a", "b"],
          save_dir,
          file_format=SerializationFormats.JSON,
      )
  
      o_post = Example()
      message = ".*No such file or directory: .*save-dir[\\\\/]+c.json"
      with pytest.raises(FileNotFoundError, match=message):
          load_attributes(
              o_post,
              ["a", "b", "c"],
              save_dir,
              file_format=SerializationFormats.JSON,
          )
  
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 6 for calling the TestAttributeSerialization obj's underlying member method code with example usage: obj.test_missing_attribute_fail(tmpdir) without return types