code: def test_self_kinship_3():
      mt = hl.balding_nichols_model(3, 10, 50).cache()
      with hl.TemporaryDirectory(
          ensure_exists=False
      ) as with_self_f, hl.TemporaryDirectory(
          ensure_exists=False
      ) as without_self_f:
          with_self = hl.pc_relate(
              mt.GT,
              0.10,
              k=2,
              statistics="kin20",
              block_size=16,
              include_self_kinship=True,
          ).checkpoint(with_self_f)
          without_self = hl.pc_relate(
              mt.GT, 0.10, k=2, statistics="kin20", block_size=16
          ).checkpoint(without_self_f)
  
          with_self_no_self_kin = with_self.filter(
              with_self.i.sample_idx != with_self.j.sample_idx
          )
          assert with_self_no_self_kin._same(without_self)
  
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 8 for calling a global function with example usage: test_self_kinship_3() without return types