code: def histogram_intersection_1(
      h1, h2
  ):  # 7 us @array, 31 us @list \w 100 bins
      r"""
      Turns the histogram intersection similarity into a distance measure for normalized,
      positive histograms.
  
      .. math::
  
          d_{\bar{\cos}}(H, H') = 1 - d_{\cap}(H, H')
  
      See `histogram_intersection` for the definition of :math:`d_{\cap}(H, H')`.
  
      *Attributes:*
  
      - semimetric
  
      *Attributes for normalized histograms:*
  
      - :math:`d(H, H')\in[0, 1]`
      - :math:`d(H, H) = 0`
      - :math:`d(H, H') = d(H', H)`
  
      *Attributes for not-normalized histograms:*
  
      - not applicable
  
      *Attributes for not-equal histograms:*
  
      - not applicable
  
      Parameters
      ----------
      h1 : sequence
          The first histogram, normalized.
      h2 : sequence
          The second histogram, normalized, same bins as ``h1``.
  
      Returns
      -------
      histogram_intersection : float
          Intersection between the two histograms.
      """
      return 1.0 - histogram_intersection(h1, h2)
  
imports: import math
  import scipy
label_desc: Use image node_id 9 for calling a global function with example usage: histogram_intersection_1(h1, h2) and returns: unknown