code: def edges_to_queries(
      g, type_col: Optional[str] = None, untyped: bool = False
  ) -> Iterable[str]:
      """
      Return stream of edge add queries
      * If type is None, try to default to fields  'edgeType', 'category', or 'type'. Skip via untyped=True.
      """
  
      if g._edges is None:
          raise ValueError(
              "No edges bound to graph yet, try calling g.edges(df)"
          )
  
      if type_col is not None:
          if type_col not in g._edges:
              raise ValueError(
                  f'type_col="{type_col}" specified yet not in data'
              )
  
      return (
          edge_to_query(
              row, g._source, g._destination, type_col, untyped
          )
          for index, row in g._edges.iterrows()
      )
  
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 6 for calling a global function with example usage: edges_to_queries(g, type_col, untyped) and returns: unknown