code: def _gen_edges(edges: DefaultDict[_T, Set[_T]]) -> Set[Tuple[_T, _T]]:
      return {(right, left) for left in edges for right in edges[left]}
  
file_path: sqlalchemy/lib/sqlalchemy/util/topological.py
imports: from __future__ import annotations
  from typing import Any
  from typing import Collection
  from typing import DefaultDict
  from typing import Iterable
  from typing import Iterator
  from typing import Sequence
  from typing import Set
  from typing import Tuple
  from typing import TypeVar
  from ..None import util
  from ..exc import CircularDependencyError
label_desc: Use image node_id 4 for calling a global function with example usage: _gen_edges(edges) and returns: unknown