code: def textMD5(text):
      '''Get md5 of a piece of text'''
      m = hash_md5()
      if isinstance(text, str):
          m.update(text.encode())
      else:
          m.update(text)
      return m.hexdigest(f textMD5(text):
      '''Get md5 of a piece of text'''
      m = hash_md5()
      if isinstance(text, str):
          m.update(text.encode())
      else:
          m.update(text)
      return m.hexdigest()
docs: Get md5 of a piece of text