code: def _format_histogram_for_vega(counts, bins):
      """Format histogram counts and bins for vega.
  
      Args:
        counts: list of bin counts from np.histogram
        bins: list of bins from np.histogram
  
      Returns:
        A list of objects with s (bin start), e (bin end), and c (bin count) for
        each bin in the histogram.
      """
      # Avoid floats becoming 0.6000000000000001 to save space in output json
      rounded_bins = [round(x, 10) for x in bins]
      # pylint: disable=g-complex-comprehension
      vega_formatted_hist = [
          {
              "s": rounded_bins[idx],
              "e": rounded_bins[idx + 1],
              "c": count,
          }
          for idx, count in enumerate(counts)
      ]
      # pylint: enable=g-complex-comprehension
      return vega_formatted_hist
  
imports: import collections
  import itertools
  import math
  import numpy
  from third_party.nucleus.util import variant_utils
  from third_party.nucleus.util import variantcall_utils
  from deepvariant import vcf_stats_vis
label_desc: Use image node_id 6 for calling a global function with example usage: _format_histogram_for_vega(counts, bins) and returns: vega_formatted_hist