code: def test_enable_batch_no_context(graph_file, directed):
      gc.collect()
      G = utils.generate_cugraph_graph_from_file(graph_file, directed)
      assert (
          G.batch_enabled is False
      ), "Internal property should be False"
      with pytest.raises(Exception):
          G.enable_batch()
  
file_path: cugraph/python/cugraph/cugraph/tests/utils/test_replication_mg.py
imports: import gc
  import pytest
  import cudf
  import cugraph
  import cugraph.testing.utils
  import cugraph.dask.structure.replication
  from cugraph.dask.common.mg_utils import is_single_gpu
  from cudf.testing import assert_series_equal, assert_frame_equal
label_desc: Use image node_id 4 for calling a global function with example usage: test_enable_batch_no_context(graph_file, directed) without return types