code: def test_scipy_api_compat():
      graph_file = DEFAULT_DATASETS[0]
      dataset_path = graph_file.get_path()
  
      input_cugraph_graph = graph_file.get_graph(ignore_weights=True)
  
      input_coo_matrix = utils.create_obj_from_csv(
          dataset_path, cp_coo_matrix, edgevals=True
      )
      # Ensure scipy-only options are rejected for cugraph inputs
      with pytest.raises(TypeError):
          cugraph.bfs(input_cugraph_graph, start=0, directed=False)
      with pytest.raises(TypeError):
          cugraph.bfs(input_cugraph_graph)  # required arg missing
  
      # Ensure cugraph-compatible options work as expected
      cugraph.bfs(input_cugraph_graph, i_start=0)
      cugraph.bfs(input_cugraph_graph, i_start=0)
      # cannot have start and i_start
      with pytest.raises(TypeError):
          cugraph.bfs(input_cugraph_graph, start=0, i_start=0)
  
      # Ensure SciPy options for matrix inputs work as expected
      cugraph.bfs(input_coo_matrix, i_start=0)
      cugraph.bfs(input_coo_matrix, i_start=0, directed=True)
      cugraph.bfs(input_coo_matrix, i_start=0, directed=False)
      result = cugraph.bfs(input_coo_matrix, i_start=0)
      assert type(result) is tuple
      assert len(result) == 2
  
imports: import gc
  import pytest
  import cupy
  import numpy
  from scipy.sparse import coo_matrix
  from scipy.sparse import csr_matrix
  from scipy.sparse import csc_matrix
  import cudf
  import cugraph
  from cupyx.scipy.sparse import coo_matrix
  from cupyx.scipy.sparse import csr_matrix
  from cupyx.scipy.sparse import csc_matrix
  from pylibcugraph.testing.utils import gen_fixture_params_product
  from cugraph.testing import utils, get_resultset, load_resultset, DEFAULT_DATASETS, SMALL_DATASETS
label_desc: Use image node_id 18 for calling a global function with example usage: test_scipy_api_compat() without return types