code: def degree(a, M):
      return M.indptr[a + 1] - M.indptr[a]
  
imports: import gc
  import pytest
  import numpy
  import scipy
  import cudf
  import cugraph
  from cugraph.testing import utils, UNDIRECTED_DATASETS
  from cudf.testing import assert_series_equal
  from cudf.testing.testing import assert_frame_equal
label_desc: Use image node_id 5 for calling a global function with example usage: degree(a, M) and returns: unknown