code: def test_fulfill_self():
      p = Promise()
      with raises(TypeError) as excinfo:
          p.do_resolve(p)
          p.get()
  
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 5 for calling a global function with example usage: test_fulfill_self() without return types