code: def test_hom_var(self):
      c_hom_var = Call([1, 1])
      self.assertEqual(c_hom_var.alleles, [1, 1])
      self.assertEqual(c_hom_var.ploidy, 2)
      self.assertFalse(c_hom_var.phased)
      self.assertFalse(c_hom_var.is_haploid())
      self.assertTrue(c_hom_var.is_diploid())
      self.assertEqual(c_hom_var.n_alt_alleles(), 2)
      self.assertTrue(c_hom_var.one_hot_alleles(2) == [0, 2])
      self.assertFalse(c_hom_var.is_hom_ref())
      self.assertFalse(c_hom_var.is_het())
      self.assertTrue(c_hom_var.is_hom_var())
      self.assertTrue(c_hom_var.is_non_ref())
      self.assertFalse(c_hom_var.is_het_non_ref())
      self.assertFalse(c_hom_var.is_het_ref())
      self.assertTrue(c_hom_var.unphased_diploid_gt_index() == 2)
  
file_path: hail/hail/python/test/hail/genetics/test_call.py
imports: import unittest
  from hail.genetics import *
  from ..helpers import *
label_desc: Use image node_id 3 for calling the Tests obj's underlying member method code with example usage: obj.test_hom_var() without return types