code: def test_core_number_invalid_input(input_combo):
      input_data_path = (
          utils.RAPIDS_DATASET_ROOT_DIR_PATH / "karate-asymmetric.csv"
      ).as_posix()
      M = utils.read_csv_for_nx(input_data_path)
      G = cugraph.Graph(directed=True)
      cu_M = cudf.DataFrame()
      cu_M["src"] = cudf.Series(M["0"])
      cu_M["dst"] = cudf.Series(M["1"])
  
      cu_M["weights"] = cudf.Series(M["weight"])
      G.from_cudf_edgelist(
          cu_M, source="src", destination="dst", edge_attr="weights"
      )
  
      with pytest.raises(ValueError):
          cugraph.core_number(G)
  
      invalid_degree_type = "invalid"
      G = input_combo["G"]
      with pytest.raises(ValueError):
          cugraph.core_number(G, invalid_degree_type)
  
file_path: cugraph/python/cugraph/cugraph/tests/core/test_core_number.py
imports: import gc
  import pytest
  import networkx
  import cudf
  import cugraph
  from cugraph.testing import utils, UNDIRECTED_DATASETS
  from pylibcugraph.testing.utils import gen_fixture_params_product
label_desc: Use image node_id 4 for calling a global function with example usage: test_core_number_invalid_input(input_combo) without return types