code: def flatten_edge_structure_adder(
      edges: List,
      edges_hits: Set[str],
      edge: Edge,
      src_col: str = "src",
      dst_col: str = "dst",
      label_col: str = "label",
      id_col: str = "id",
  ) -> Optional[dict]:
      """
      Return item when added as fresh
      """
      if edge.id in edges_hits:
          return None
      d = flatten_edge_structure(
          edge, src_col, dst_col, label_col, id_col
      )
      edges.append(d)
      edges_hits.add(edge.id)
      return d
  
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 10 for calling a global function with example usage: flatten_edge_structure_adder(edges, edges_hits, edge, src_col, dst_col, label_col, id_col) and returns: d, None