code: def test_list_formats(self, tmpdir):
      example = Example(a="A", b="B", c="C")
      save_dir = tmpdir.mkdir("save-dir")
      attributes = ["a", "b"]
      file_format = [
          SerializationFormats.TEXT,
          SerializationFormats.PICKLE,
      ]
      self._validate_roundtrip(
          example, attributes, save_dir, file_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 5 for calling the TestAttributeSerialization obj's underlying member method code with example usage: obj.test_list_formats(tmpdir) without return types