code: def test_split_data_by_edge_type(self, heterogeneous_graph):
      g, es_obj = heterogeneous_graph
      # test global method for negative edge sampling
      self._test_split_data_by_edge_type(g, es_obj, method="global")
  
      # test local method for positive edge sampling
      self._test_split_data_by_edge_type(g, es_obj, method="local")
  
imports: import pytest
  import os
  import numpy
  import networkx
  from stellargraph import StellarGraph
  from stellargraph.data.edge_splitter import EdgeSplitter
  from stellargraph.data.epgm import EPGM
  import random
  import datetime
  from datetime import datetime, timedelta
  from ..test_utils import flaky_xfail_mark
  from ..test_utils.graphs import example_graph_random
label_desc: Use image node_id 3 for calling the TestEdgeSplitterHeterogeneous obj's underlying member method code with example usage: obj.test_split_data_by_edge_type(heterogeneous_graph) without return types