code: def test_relationship_serialization(es):
      relationship = Relationship(
          es, "sessions", "id", "log", "session_id"
      )
  
      dictionary = {
          "parent_dataframe_name": "sessions",
          "parent_column_name": "id",
          "child_dataframe_name": "log",
          "child_column_name": "session_id",
      }
      assert relationship.to_dictionary() == dictionary
      assert (
          Relationship.from_dictionary(dictionary, es) == relationship
      )
  
imports: from featuretools.entityset.relationship import Relationship, RelationshipPath
label_desc: Use image node_id 6 for calling a global function with example usage: test_relationship_serialization(es) without return types