code: def test_enable_batch_context_then_views(
      graph_file, directed, dask_client
  ):
      gc.collect()
      G = utils.generate_cugraph_graph_from_file(graph_file, directed)
      assert (
          G.batch_enabled is False
      ), "Internal property should be False"
      G.enable_batch()
      assert G.batch_enabled is True, "Internal property should be True"
      assert G.batch_edgelists is not None, (
          "The graph should have " "been created with an " "edgelist"
      )
      assert G.batch_adjlists is None
      G.view_adj_list()
      assert G.batch_adjlists is not None
  
      assert G.batch_transposed_adjlists is None
      G.view_transposed_adj_list()
      assert G.batch_transposed_adjlists is not None
  
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 6 for calling a global function with example usage: test_enable_batch_context_then_views(graph_file, directed, dask_client) without return types