code: def test_two_tokens_predicate(self):
      assert fn.firstTwoTokensPredicate("donald") == frozenset()
      assert fn.firstTwoTokensPredicate("don ald") == {"don ald"}
      assert fn.firstTwoTokensPredicate("do\nal d") == {"do\nal"}
      assert fn.firstTwoTokensPredicate("go-of y  ") == {"go-of"}
      assert fn.firstTwoTokensPredicate(" cip   ciop ") == frozenset()
  
imports: import unittest
  from dedupe import predicate_functions
  from dedupe.cpredicates import ngrams
label_desc: Use image node_id 4 for calling the TestPredicateFunctions obj's underlying member method code with example usage: obj.test_two_tokens_predicate() without return types