code: def test_variant_qc_alleles_field(self):
      mt = hl.balding_nichols_model(1, 1, 1)
      mt = mt.key_rows_by().drop("alleles")
      with pytest.raises(
          ValueError,
          match="Method 'variant_qc' requires a field 'alleles' \\(type 'array<str>'\\).*",
      ):
          hl.variant_qc(mt).variant_qc.collect()
  
      mt = hl.balding_nichols_model(1, 1, 1)
      mt = mt.key_rows_by().drop("locus")
      hl.variant_qc(mt).variant_qc.collect()
  
imports: import unittest
  import hail
  import hail.expr.aggregators
  from hail.utils.misc import new_temp_file
  from ..helpers import *
  from hail.methods.qc import VEPConfigGRCh37Version85, VEPConfigGRCh38Version95
label_desc: Use image node_id 5 for calling the Tests obj's underlying member method code with example usage: obj.test_variant_qc_alleles_field() without return types