code: def assert_equal_bin8(actual, expected):
      res = check_cast_bin8(actual)
      assert res.shape == actual.shape
      assert res.dtype.type == np.uint8
      assert_array_equal(res, expected)
  
file_path: nipy/nipy/algorithms/statistics/tests/test_utils.py
imports: import numpy
  import pytest
  import scipy.linalg
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from scipy.stats import norm
  from ..utils import check_cast_bin8, multiple_fast_inv, multiple_mahalanobis, z_score
label_desc: Use image node_id 5 for calling a global function with example usage: assert_equal_bin8(actual, expected) without return types