code: def test_cli_1(path, arr):
      _write_arr(path, arr)
      out = path.parent / "data.cbin"
      outmeta = path.parent / "data.ch"
      path2 = path.parent / "data2.bin"
  
      with raises(ValueError):
          # Wrong number of channels: should raise an error because the file size is not a
          # multiple of that wrong number of channels.
          mtscomp(
              [
                  str(path),
                  "-d",
                  str(arr.dtype),
                  "-s",
                  str(sample_rate),
                  "-n",
                  str(arr.shape[1] + 1),
              ]
          )
      # Compress.
      mtscomp(
          [
              str(path),
              "-d",
              str(arr.dtype),
              "-s",
              str(sample_rate),
              "-n",
              str(arr.shape[1]),
          ]
      )
  
      # Capture the compressed dataset description.
      f = io.StringIO()
      with redirect_stdout(f):
          mtsdesc([str(out), str(outmeta)])
      desc = f.getvalue()
      dt = np.dtype(re.search(r"dtype[ ]+(\S+)", desc).group(1))
      nc = int(re.search(r"n_channels[ ]+([0-9]+)", desc).group(1))
  
      # Decompress.
      mtsdecomp([str(out), str(outmeta), "-o", str(path2)])
  
      # Extract n_channels and dtype from the description.
      decompressed = load_raw_data(path=path2, n_channels=nc, dtype=dt)
  
      # Check that the decompressed and original arrays match.
      np.allclose(decompressed, arr)
  
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 35 for calling a global function with example usage: test_cli_1(path, arr) without return types