code: def get_edge(self, vertex: Vertex):
      if vertex in self.edges:
          return self, vertex, self.edges[vertex]
      return vertex, self, self.r_edges[vertex]
  
imports: from __future__ import annotations
  import heapq
  import itertools
  import math
  import random
  from river import base
label_desc: Use image node_id 11 for calling the Vertex obj's underlying member method code with example usage: obj.get_edge(vertex) and returns: vertex,  self,  self, self,  vertex,  self