code: def test_coalesces_identical_requests():
      @Promise.safe
      def do():
          identity_loader, load_calls = id_loader()
  
          promise1 = identity_loader.load(1)
          promise2 = identity_loader.load(1)
  
          assert promise1 == promise2
          p = Promise.all([promise1, promise2])
  
          value1, value2 = p.get()
  
          assert value1 == 1
          assert value2 == 1
  
          assert load_calls == [[1]]
  
      do().get()
  
imports: from pytest import raises
  from promise import Promise, async_instance
  from promise.dataloader import DataLoader
label_desc: Use image node_id 6 for calling a global function with example usage: test_coalesces_identical_requests() without return types