code: def test_split_result_masked():
      s = SplitResult.fromtext("Hello, world!")
      assert (
          s.masked(np.array([False, False], dtype=bool)).text == s.text
      )
      assert (
          s.masked(np.array([True, False], dtype=bool)).text
          == ", world!"
      )
      assert (
          s.masked(np.array([False, True], dtype=bool)).text
          == "Hello, !"
      )
      assert s.masked(np.array([True, True], dtype=bool)).text == ", !"
  
file_path: eli5/tests/test_lime_textutils.py
imports: from __future__ import absolute_import
  import numpy
  from hypothesis import given, assume
  from hypothesis.strategies import characters, text
  from eli5.lime.textutils import SplitResult, TokenizedText
label_desc: Use image node_id 3 for calling a global function with example usage: test_split_result_masked() without return types