code: def test_self_kinship_1():
      mt = hl.balding_nichols_model(3, 10, 50).cache()
      with hl.TemporaryDirectory(ensure_exists=False) as f:
          with_self = hl.pc_relate(
              mt.GT,
              0.10,
              k=2,
              statistics="kin",
              block_size=16,
              include_self_kinship=True,
          ).checkpoint(f)
          assert with_self.count() == 55
          with_self_self_kin_only = with_self.filter(
              with_self.i.sample_idx == with_self.j.sample_idx
          )
          assert (
              with_self_self_kin_only.count() == 10
          ), with_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 6 for calling a global function with example usage: test_self_kinship_1() without return types