code: def test_basic(self) -> None:
      config = ConfigSchema(
          entities={"e": EntitySchema(num_partitions=1)},
          relations=[RelationSchema(name="r", lhs="e", rhs="e")],
          dimension=1,
          entity_path="foo",
          edge_paths=["bar"],
          checkpoint_path="baz",
      )
      metadata = ConfigMetadataProvider(
          config
      ).get_checkpoint_metadata()
      self.assertIsInstance(metadata, dict)
      self.assertCountEqual(metadata.keys(), ["config/json"])
      self.assertEqual(
          config,
          ConfigSchema.from_dict(json.loads(metadata["config/json"])),
      )
  
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 1 for calling the TestConfigMetadataProvider obj's underlying member method code with example usage: obj.test_basic() without return types