code: def test_lgt_to_gt():
      call_0_0_f = hl.call(0, 0, phased=False)
      call_0_0_t = hl.call(0, 0, phased=True)
      call_0_1_f = hl.call(0, 1, phased=False)
      call_2_0_t = hl.call(2, 0, phased=True)
  
      call_1 = hl.call(1, phased=False)
  
      la = [0, 3, 5]
  
      assert hl.eval(
          tuple(
              hl.vds.lgt_to_gt(c, la)
              for c in [
                  call_0_0_f,
                  call_0_0_t,
                  call_0_1_f,
                  call_2_0_t,
                  call_1,
              ]
          )
      ) == tuple(
          [
              hl.Call([0, 0], phased=False),
              hl.Call([0, 0], phased=True),
              hl.Call([0, 3], phased=False),
              hl.Call([5, 0], phased=True),
              hl.Call([3], phased=False),
          ]
      )
  
      assert hl.eval(
          hl.vds.lgt_to_gt(call_0_0_f, hl.missing("array<int32>"))
      ) == hl.Call([0, 0], phased=False)
  
imports: import pytest
  import hail
label_desc: Use image node_id 1 for calling a global function with example usage: test_lgt_to_gt() without return types