code: def graph(
      data,
      src_lat,
      src_lon,
      dest_lat,
      dest_lon,
      linewidth=1,
      alpha=220,
      color="hot",
      levels=10,
      color_by=None,
      seg_scale="log",
  ):
      """Create a graph drawing a line between each pair of (src_lat, src_lon) and (dest_lat, dest_lon)
  
      :param data: data access object
      :param src_lat: field name of source latitude
      :param src_lon: field name of source longitude
      :param dest_lat: field name of destination latitude
      :param dest_lon: field name of destination longitude
      :param linewidth: line width
      :param alpha: color alpha
      :param color: color or colormap
      :param levels: coloring levels
      :param color_by: attribute name for color, default using node distance
      :param seg_scale: coloring data segamentation sacle, 'log' or 'lin',
          'lin' only used if not by distance
      """
      from geoplotlib.layers import GraphLayer
  
      _global_config.layers.append(
          GraphLayer(
              data,
              src_lat,
              src_lon,
              dest_lat,
              dest_lon,
              linewidth,
              alpha,
              color,
              levels,
              color_by,
              seg_scale,
          )
      )
  
imports: import base64
  import traceback
  import pyglet
  from geoplotlib.core import GeoplotlibApp
  from core import FONT_NAME
label_desc: Use image node_id 8 for calling a global function with example usage: graph(data, src_lat, src_lon, dest_lat, dest_lon, linewidth, alpha, color, levels, color_by, seg_scale) without return types