code: def add_node_offset_to_edges_dict(edge_data_dict, node_id_offset_d):
      for etype, df in edge_data_dict.items():
          src_type, _, dst_type = etype
          df[src_n] = df[src_n] + node_id_offset_d[src_type]
          df[dst_n] = df[dst_n] + node_id_offset_d[dst_type]
      return edge_data_dict
  
imports: import numpy
  from cugraph.gnn.dgl_extensions.utils.sampling import eid_n, src_n, dst_n
  from cugraph.utilities.utils import import_optional, MissingModule
label_desc: Use image node_id 4 for calling a global function with example usage: add_node_offset_to_edges_dict(edge_data_dict, node_id_offset_d) and returns: edge_data_dict