code: def test_make_binary():
      from mahotas.internal import _make_binary
  
      np.random.seed(34)
      binim = np.random.random_sample((32, 64)) > 0.25
      assert _make_binary(binim) is binim
      assert np.all(_make_binary(binim.astype(int)) == binim)
      assert np.all(_make_binary(binim.astype(int) * 4) == binim)
      assert np.all(_make_binary(binim.astype(float) * 3.4) == binim)
      assert np.all(
          _make_binary(binim * np.random.random_sample(binim.shape))
          == binim
      )
  
imports: import numpy
  from mahotas.internal import _get_output, _get_axis
  from mahotas.internal import _normalize_sequence, _verify_is_integer_type, _verify_is_floatingpoint_type, _as_floating_point_array
  from mahotas.internal import _check_3
  import pytest
label_desc: Use image node_id 18 for calling a global function with example usage: test_make_binary() without return types