class_docstr: This class creates a cache of accessors to structured fields in Variants.
  
  The INFO and FORMAT fields within Variant protos are structured and typed,
  with types defined by the corresponding VCF header. This cache object provides
  provides {info,format}_field_{get,set}_fn functions that can be used to
  extract information from the structured Variant protos based on the types
  defined therein.
  
  NOTE: Users should not need to interact with this class at all. It is used
  by the variant_utils.{get,set}_info and variantcall_utils.{get,set}_format
  functions for interacting with the INFO and FORMAT fields in a Variant proto.
class_docstr_tok: ["This","class","creates","a","cache","of","accessors","to","structured","fields","in","Variants",".","The","INFO","and","FORMAT","fields","within","Variant","protos","are","structured","and","typed",",","with","types","defined","by","the","corresponding","VCF","header",".","This","cache","object","provides","provides","{","info",",","format","}","_field_","{","get",",","set","}","_fn","functions","that","can","be","used","to","extract","information","from","the","structured","Variant","protos","based","on","the","types","defined","therein",".","NOTE",":","Users","should","not","need","to","interact","with","this","class","at","all",".","It","is","used","by","the","variant_utils",".","{","get",",","set","}","_info","and","variantcall_utils",".","{","get",",","set","}","_format","functions","for","interacting","with","the","INFO","and","FORMAT","fields","in","a","Variant","proto","."]
docstr: Returns a callable that sets the given INFO field based on its type.
docstr_tok: ["Returns","a","callable","that","sets","the","given","INFO","field","based","on","its","type","."]
code: def info_field_set_fn(self, field_name):
      """Returns a callable that sets the given INFO field based on its type."""
      return self._info_set_cache[field_name]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from third_party.nucleus.io import genomics_reader
  from third_party.nucleus.io import genomics_writer
  from third_party.nucleus.io.python import vcf_reader
  from third_party.nucleus.io.python import vcf_writer
  from third_party.nucleus.protos import variants_pb2
  from third_party.nucleus.util import ranges
  from third_party.nucleus.util import variant_utils
  from third_party.nucleus.util import vcf_constants
label_desc: Use image node_id 3 for calling the VcfHeaderCache obj's underlying member method code with example usage: obj.info_field_set_fn(field_name) and returns: self