code: def test_diff_cumsum_1(arr, ax1, ax2):
      if ax1 == ax2 and ax1 is not None:
          # Skip double diff along the same axis.
          return
      arrd = diff_along_axis(arr, axis=ax1)
      arrd = diff_along_axis(arrd, axis=ax2)
      arr2 = cumsum_along_axis(arrd, axis=ax2)
      arr2 = cumsum_along_axis(arr2, axis=ax1)
      assert arr.shape == arr2.shape
      assert arr.dtype == arr2.dtype
      if np.issubdtype(arr.dtype, np.integer):
          assert np.array_equal(arr, arr2)
      else:
          assert np.allclose(arr, arr2, atol=CHECK_ATOL)
  
imports: from contextlib import redirect_stdout
  import io
  from itertools import product
  import json
  import hashlib
  import logging
  import os
  import os.path
  from pathlib import Path
  import re
  import numpy
  from pytest import fixture, raises, mark
  import mtscomp
  from mtscomp import add_default_handler, Writer, Reader, load_raw_data, diff_along_axis, cumsum_along_axis, mtscomp_parser, mtsdecomp_parser, _args_to_config, read_config, compress, decompress, mtsdesc, mtscomp, mtsdecomp, mtschop, CHECK_ATOL
label_desc: Use image node_id 18 for calling a global function with example usage: test_diff_cumsum_1(arr, ax1, ax2) without return types