code: def test_sampleqc_singleton_r_ti_tv():
      vds = hl.vds.read_vds(
          os.path.join(resource("vds"), "1kg_chr22_5_samples.vds")
      )
      sqc = hl.vds.sample_qc(vds)
  
      hg00313 = (
          sqc.filter(sqc.s == "HG00313")
          .select(
              "r_ti_tv_singleton", "n_singleton_ti", "n_singleton_tv"
          )
          .collect()[0]
      )
      assert hg00313 == hl.Struct(
          s="HG00313",
          r_ti_tv_singleton=4.0,
          n_singleton_ti=4,
          n_singleton_tv=1,
      )
  
imports: import os
  import pytest
  import hail
  from hail.utils import new_temp_file
  from hail.vds.combiner.combine import defined_entry_fields
  from ..helpers import resource, test_timeout, qobtest
label_desc: Use image node_id 6 for calling a global function with example usage: test_sampleqc_singleton_r_ti_tv() without return types