code: def cora():
      print(os.getcwd())
      if os.getcwd().split("/")[-1] == "tests":
          input_dir = os.path.expanduser(
              "resources/data/cora/cora.epgm"
          )
      else:
          input_dir = os.path.expanduser(
              "tests/resources/data/cora/cora.epgm"
          )
  
      dataset_name = "cora"
  
      g = read_graph(input_dir, dataset_name)
      g = nx.Graph(g)
  
      es_obj = EdgeSplitter(g)
  
      return g, es_obj
  
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 a global function with example usage: cora() and returns: g,  es_obj