code: def code_binary(item):
      
      code_str = code(item)
      if isinstance(code_str, six.string_types):
          return code_str.encode('utf-8')
      return code_str
docs: Return a binary 'code' suitable for hashing.