code: def test_to_dictionary(self):
      snapshot_entity = Snapshot(self.input_dict)
      output_dict = snapshot_entity.to_dictionary()
  
      for k, v in output_dict.items():
          assert v == getattr(snapshot_entity, k)
  
      # Test stringify
      output_dict = snapshot_entity.to_dictionary(stringify=True)
  
      for k, v in output_dict.items():
          if k in [
              "config",
              "stats",
              "message",
              "label",
              "created_at",
              "updated_at",
          ]:
              assert isinstance(k, str)
          else:
              assert v == getattr(snapshot_entity, k)
  
file_path: datmo/datmo/core/entity/tests/test_snapshot.py
imports: from datmo.core.entity.snapshot import Snapshot
label_desc: Use image node_id 6 for calling the TestSnapshot obj's underlying member method code with example usage: obj.test_to_dictionary() without return types