code: def hydra_to_vcf_writer(hydra_file, genome_2bit, options, out_handle):
      _write_vcf_header(out_handle)
      brends = list(_get_vcf_breakends(hydra_file, genome_2bit, options))
      brends.sort(key=attrgetter("chrom", "pos"))
      for brend in brends:
          _write_vcf_breakend(brend, out_handle)