code: def sorensen_dice(seq1: Iterable[str], seq2: Iterable[str]) -> float:
      """
      Measure the similarity between two sequences of strings as sets
      using the Sørensen-Dice index, which is similar to the Jaccard index.
  
      Args:
          seq1
          seq2
  
      Returns:
          Similarity between ``seq1`` and ``seq2`` in the interval [0.0, 1.0],
          where larger values correspond to more similar sequences
  
      Reference:
          https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient
      """
      set1 = set(seq1)
      set2 = set(seq2)
      try:
          return 2 * len(set1 & set2) / (len(set1) + len(set2))
      except ZeroDivisionError:
          return 0.0
  
imports: import collections
  import math
  from typing import Iterable
label_desc: Use image node_id 2 for calling a global function with example usage: sorensen_dice(seq1, seq2) and returns: unknown, int