code: def export_top_k() -> None:
      axis = 1
      largest = 1
  
      k = 3
      node = onnx.helper.make_node(
          "TopK",
          inputs=["x", "k"],
          outputs=["values", "indices"],
          axis=axis,
      )
      X = np.array(
          [
              [0, 1, 2, 3],
              [4, 5, 6, 7],
              [8, 9, 10, 11],
          ],
          dtype=np.float32,
      )
      K = np.array([k], dtype=np.int64)
      values_ref, indices_ref = topk_sorted_implementation(
          X, k, axis, largest
      )
  
      # print(values_ref)
      # [[ 3.  2.  1.]
      # [ 7.  6.  5.]
      # [11. 10.  9.]]
      # print(indices_ref)
      # [[3 2 1]
      # [3 2 1]
      # [3 2 1]]
  
      expect(
          node,
          inputs=[X, K],
          outputs=[values_ref, indices_ref],
          name="test_top_k",
      )
  
file_path: onnx/onnx/backend/test/case/node/topk.py
imports: import numpy
  import onnx
  from onnx.backend.test.case.base import Base
  from onnx.backend.test.case.node import expect
label_desc: Use image node_id 1 for calling the TopK obj's underlying member method code with example usage: obj.export_top_k() without return types