code: def test_is_affine_transform():
      na = 2 ** np.random.randint(1, 10)
      d = 2 ** np.random.randint(1, 3)
      a = np.random.uniform(-1, 1, size=(na, d))
  
      assert is_affine_transform(a, a)
      assert is_affine_transform(a, a * 2.0)
      assert is_affine_transform(a, a - 1)
      assert is_affine_transform(a, a * 10000 - 5000.0)
      assert not is_affine_transform(a, a**2)
  
file_path: ultranest/tests/test_utils.py
imports: import numpy
  import tempfile
  import os
  from ultranest.utils import vectorize, is_affine_transform, normalised_kendall_tau_distance, make_run_dir
  from ultranest.utils import distributed_work_chunk_size
  from numpy.testing import assert_allclose
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_is_affine_transform() without return types