code: def hamming_distance(s1, s2):
      _check_type(s1)
      _check_type(s2)
  
      # ensure length of s1 >= s2
      if len(s2) > len(s1):
          s1, s2 = s2, s1
  
      # distance is difference in length + differing chars
      distance = len(s1) - len(s2)
      for i, c in enumerate(s2):
          if c != s1[i]:
              distance += 1
  
      return distance
  
file_path: jellyfish/python/jellyfish/_jellyfish.py
imports: import unicodedata
  from collections import defaultdict
  from itertools import zip_longest
  import warnings
label_desc: Use image node_id 9 for calling a global function with example usage: hamming_distance(s1, s2) and returns: distance