code: def test_katz():
      num_edges = 8
      num_vertices = 6
      graph_data = np.genfromtxt(TOY, delimiter=" ")
      src = cp.asarray(graph_data[:, 0], dtype=np.int32)
      dst = cp.asarray(graph_data[:, 1], dtype=np.int32)
      wgt = cp.asarray(graph_data[:, 2], dtype=np.float32)
      result = cp.asarray(
          [0.410614, 0.403211, 0.390689, 0.415175, 0.395125, 0.433226],
          dtype=np.float32,
      )
      alpha = 0.01
      beta = 1.0
      epsilon = 0.000001
      max_iterations = 1000
  
      # Katz requires store_transposed to be True
      _generic_katz_test(
          src,
          dst,
          wgt,
          result,
          num_vertices,
          num_edges,
          True,
          alpha,
          beta,
          epsilon,
          max_iterations,
      )
  
imports: import pytest
  import cupy
  import numpy
  from pylibcugraph import ResourceHandle, GraphProperties, SGGraph, katz_centrality
  from pylibcugraph.testing import utils
label_desc: Use image node_id 3 for calling a global function with example usage: test_katz() without return types