code: def assert_c_king_same_as_hail_king(c_king_path, hail_king_mt):
      actual = hail_king_mt.entries()
      expected = hl.import_table(
          c_king_path, types={"Kinship": hl.tfloat}, key=["ID1", "ID2"]
      )
      expected = expected.rename(
          {"ID1": "s_1", "ID2": "s", "Kinship": "phi"}
      )
      expected = expected.key_by("s_1", "s")
      expected = expected.annotate(actual=actual[expected.key])
      expected = expected.select(
          expected=expected.phi,
          actual=expected.actual.phi,
          diff=expected.phi - expected.actual.phi,
      )
      expected = expected.annotate(
          # KING prints 4 significant digits; but there are several instances
          # where we calculate 0.XXXX5 whereas KING outputs 0.XXXX
          failure=hl.abs(expected.diff)
          > 0.00006
      )
      expected = expected.filter(expected.failure)
      assert expected.count() == 0, expected.collect()
  
imports: import pytest
  import hail
  from ..helpers import resource, fails_local_backend, fails_service_backend
label_desc: Use image node_id 1 for calling a global function with example usage: assert_c_king_same_as_hail_king(c_king_path, hail_king_mt) without return types