code: def test_binarize():
      data = np.array([[2, 7, 0], [8, 2, 9], [9, 9, 4]])
      threshold = 3
      expected = np.array([[0, 1, 0], [1, 0, 1], [1, 1, 1]])
      assert np.array_equal(binarize(data, threshold), expected)
  
file_path: recommenders/tests/unit/recommenders/utils/test_python_utils.py
imports: import pytest
  import numpy
  from recommenders.utils.python_utils import exponential_decay, jaccard, lift, get_top_k_scored_items, binarize, rescale
label_desc: Use image node_id 9 for calling a global function with example usage: test_binarize() without return types