code: def test_many_field(self) -> None:
      m = TwoWayMapping(
          "fo{field1}.{field2}ar.b{field3}z",
          "sp{field3}m/{field2}am/egg{field1}",
          fields=["field1", "field2", "field3"],
      )
      self.assertEqual(
          m.private_to_public.map("foo.bar.baz"), "spam/bam/eggo"
      )
      self.assertEqual(
          m.public_to_private.map("spam/ham/eggs"), "fos.har.baz"
      )
  
file_path: PyTorch-BigGraph/test/test_checkpoint_manager.py
imports: import json
  from unittest import main, TestCase
  from torchbiggraph.checkpoint_manager import ConfigMetadataProvider, TwoWayMapping
  from torchbiggraph.config import ConfigSchema, EntitySchema, RelationSchema
label_desc: Use image node_id 2 for calling the TestTwoWayMapping obj's underlying member method code with example usage: obj.test_many_field() without return types