parameters: (contents)
return_statement: return b
docstring: Serializes a hexadecimal string as binary and confirms that it's 128 bits
docstring_summary: Serializes a hexadecimal string as binary and confirms that it's 128 bits
docstring_tokens: Serializes a hexadecimal string as binary and confirms that it s 128 bits
function: def hash128_to_bytes(contents):
      """
      Serializes a hexadecimal string as binary and confirms that it's 128 bits
      """
      b = hash_to_bytes(contents)
      if len(b) != 16: # 16 bytes = 128 bits
          raise ValueError("Hash128 is not 128 bits long")
      return b
function_tokens: def hash128_to_bytes ( contents ) : b = hash_to_bytes ( contents ) if len ( b ) != 16 : # 16 bytes = 128 bits raise ValueError ( "Hash128 is not 128 bits long" ) return b