code: def get_edges_of_node(
      g: Plottable,
      node_id: Union[str, int],
      outgoing_edges: bool = True,
      hops: int = 1,
  ):
      """Gets edges of node at k-hops from node
  
      :param g: graphistry instance
      :param node_id: `node` to find edges from
      :param outgoing_edges: bool, if true, finds all outgoing edges of `node`, default True
      :param hops: the number of hops from `node` to take, default = 1
  
      :returns: DataFrame of edges
      """
      _, _, src, dst, _ = unpack(g)
      g2 = get_children(g, node_id, hops=hops)
      if outgoing_edges:
          edges = g2._edges[dst].drop_duplicates()
      else:
          edges = pd.concat(
              [g2._edges[src], g2._edges[dst]]
          ).drop_duplicates()
      return edges
  
imports: from typing import Union, Optional, List
  import copy, logging, pandas, numpy
  from graphistry.PlotterBase import Plottable
label_desc: Use image node_id 4 for calling a global function with example usage: get_edges_of_node(g, node_id, outgoing_edges, hops) and returns: edges