code: def test_mendel_errors_1(self):
      mt = hl.import_vcf(resource("mendel.vcf"))
      ped = hl.Pedigree.read(resource("mendel.fam"))
      men, fam, ind, var = hl.mendel_errors(mt["GT"], ped)
  
      assert men.key.dtype == hl.tstruct(
          locus=mt.locus.dtype, alleles=hl.tarray(hl.tstr), s=hl.tstr
      )
      assert men.row.dtype == hl.tstruct(
          locus=mt.locus.dtype,
          alleles=hl.tarray(hl.tstr),
          s=hl.tstr,
          fam_id=hl.tstr,
          mendel_code=hl.tint,
      )
      assert fam.key.dtype == hl.tstruct(pat_id=hl.tstr, mat_id=hl.tstr)
      assert fam.row.dtype == hl.tstruct(
          pat_id=hl.tstr,
          mat_id=hl.tstr,
          fam_id=hl.tstr,
          children=hl.tint,
          errors=hl.tint64,
          snp_errors=hl.tint64,
      )
      assert ind.key.dtype == hl.tstruct(s=hl.tstr)
      assert ind.row.dtype == hl.tstruct(
          s=hl.tstr,
          fam_id=hl.tstr,
          errors=hl.tint64,
          snp_errors=hl.tint64,
      )
      assert var.key.dtype == hl.tstruct(
          locus=mt.locus.dtype, alleles=hl.tarray(hl.tstr)
      )
      assert var.row.dtype == hl.tstruct(
          locus=mt.locus.dtype,
          alleles=hl.tarray(hl.tstr),
          errors=hl.tint64,
      )
  
imports: import unittest
  import hail
  from ..helpers import *
label_desc: Use image node_id 5 for calling the Tests obj's underlying member method code with example usage: obj.test_mendel_errors_1() without return types