code: def test_nx_convert_directed(graph_file):
      # read data and create a Nx DiGraph
      dataset_path = graph_file.get_path()
      nx_df = utils.read_csv_for_nx(dataset_path)
      nxG = nx.from_pandas_edgelist(
          nx_df, "0", "1", create_using=nx.DiGraph
      )
      assert nxG.is_directed() is True
  
      cuG = cugraph.utilities.convert_from_nx(nxG)
      assert cuG.is_directed() is True
      assert cuG.is_weighted() is False
  
      _compare_graphs(nxG, cuG, has_wt=False)
  
file_path: cugraph/python/cugraph/cugraph/tests/nx/test_nx_convert.py
imports: import pytest
  import pandas
  import networkx
  import cudf
  import cugraph
  from cugraph.testing import utils, DEFAULT_DATASETS
label_desc: Use image node_id 4 for calling a global function with example usage: test_nx_convert_directed(graph_file) without return types