code: def test_split_data_method_parameter(self, heterogeneous_graph):
      _, es_obj = heterogeneous_graph
      p = 0.5  # any value in the interval (0, 1) should do
      sampling_method = (
          "other"  # correct values are global and local only
      )
      with pytest.raises(ValueError):
          es_obj.train_test_split(p=p, method=sampling_method)
  
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 TestEdgeSplitterCommon obj's underlying member method code with example usage: obj.test_split_data_method_parameter(heterogeneous_graph) without return types