code: def test_get_if():
      p1 = Promise()
      p1.do_resolve(5)
      v = p1.get()
      assert p1.is_fulfilled
      assert 5 == v
  
imports: from time import sleep
  from pytest import raises, fixture
  from threading import Event
  from promise import Promise, is_thenable, promisify, promise_for_dict
  from concurrent.futures import Future
  from threading import Thread
  from .utils import assert_exception
label_desc: Use image node_id 10 for calling a global function with example usage: test_get_if() without return types