code: def test_tas3d():
      np.random.seed(22)
      f = np.random.rand(512, 512, 8)
      f = (f * 255).astype(np.uint8)
      assert np.abs(tas(f).sum() - 6) < 0.0001
      assert np.abs(pftas(f).sum() - 6) < 0.0001
  
file_path: mahotas/mahotas/tests/test_tas.py
imports: import numpy
  from mahotas.features import tas, pftas
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_tas3d() without return types