class_docstr: Tests VcfReader behavior on specific inputs.
docstr: Tests reading a VCF with unconventional FORMAT field definition.
  
  Tests reading a VCF in which the properties of the format
  fields are defined in mixed order in the header. For example,
  
  ##FORMAT=<ID=GT,Type=String,Number=1,Description="GT description">
  
  (In normal VCFs "Number" should come before "Type".)
docstr_tok: ["Tests","reading","a","VCF","with","unconventional","FORMAT","field","definition",".","Tests","reading","a","VCF","in","which","the","properties","of","the","format","fields","are","defined","in","mixed","order","in","the","header",".","For","example",",","#","#","FORMAT=","<","ID=GT",",","Type=String",",","Number=1",",","Description=","''","GT","description","''",">","(","In","normal","VCFs","``","Number","''","should","come","before","``","Type","''",".",")"]
code: def test_header_format_mixed_order(self):
      """Tests reading a VCF with unconventional FORMAT field definition.
  
      Tests reading a VCF in which the properties of the format
      fields are defined in mixed order in the header. For example,
  
      ##FORMAT=<ID=GT,Type=String,Number=1,Description="GT description">
  
      (In normal VCFs "Number" should come before "Type".)
      """
      with vcf.VcfReader(
          test_utils.genomics_core_testdata(
              "header_format_mixed_order.vcf"
          )
      ) as vreader:
          formats = vreader.header.formats
          variants = list(vreader)
      self.assertLen(formats, 1)
      self.assertEqual(formats[0].id, "GT")
      self.assertEqual(formats[0].number, "1")
      self.assertEqual(formats[0].type, "String")
      self.assertEqual(formats[0].description, "GT description")
      self.assertLen(variants, 2)
      self.assertEqual(variants[0].calls[0].genotype, [0, 1])
      self.assertEqual(variants[1].calls[0].genotype, [1, 1])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import absltest
  from absl.testing import parameterized
  from etils import epath
  from third_party.nucleus.io import vcf
  from third_party.nucleus.protos import reference_pb2
  from third_party.nucleus.protos import struct_pb2
  from third_party.nucleus.protos import variants_pb2
  from third_party.nucleus.testing import test_utils
  from third_party.nucleus.util import ranges
label_desc: Use image node_id 1 for calling the VcfReaderInputTests obj's underlying member method code with example usage: obj.test_header_format_mixed_order() without return types