code: def flatten_edge_structure(
      edge: Edge,
      src_col: str = "src",
      dst_col: str = "dst",
      label_col: str = "label",
      id_col: str = "id",
  ) -> dict:
      return {
          id_col: edge.id,
          label_col: edge.label,
          src_col: edge.inV.id,
          dst_col: edge.outV.id,
      }
  
imports: from typing import Any, Callable, Iterable, List, Optional, Set, Union, TYPE_CHECKING
  import os, pandas
  from .Plottable import Plottable
  from .util import setup_logger
label_desc: Use image node_id 9 for calling a global function with example usage: flatten_edge_structure(edge, src_col, dst_col, label_col, id_col) and returns: dict