code: def test_self_kinship_2():
      mt = hl.balding_nichols_model(3, 10, 50).cache()
      with hl.TemporaryDirectory(ensure_exists=False) as f:
          without_self = hl.pc_relate(
              mt.GT, 0.10, k=2, statistics="kin", block_size=16
          ).checkpoint(f)
          assert without_self.count() == 45
          without_self_self_kin_only = without_self.filter(
              without_self.i.sample_idx == without_self.j.sample_idx
          )
          assert (
              without_self_self_kin_only.count() == 0
          ), without_self_self_kin_only.collect()
  
file_path: hail/hail/python/test/hail/methods/relatedness/test_pc_relate.py
imports: import hail
  from ...helpers import resource, skip_when_service_backend, test_timeout, skip_when_service_backend_in_azure, qobtest
label_desc: Use image node_id 7 for calling a global function with example usage: test_self_kinship_2() without return types