code: def assign_uuids_to_nodes_and_edges(self):
          
          for node in self.nodes(data=True):
              node[1]["id"] = str(uuid4())
  
          for edge in self.edges(data=True):
              edge[2]["id"] = str(uuid4())
docs: Assign uuids to nodes and edges.