docs: def get_codec(data):
      """
      Returns the codec used to encode the given data
  
      :param data: multibase encoded data
      :type data: str or bytes
      :return: the :py:obj:`multibase.Encoding` object for the data's codec
      :raises ValueError: if the codec is not supported
      """
      try:
          key = ensure_bytes(data[:CODE_LENGTH], 'utf8')
          codec = ENCODINGS_LOOKUP[key]
      except KeyError:
          raise ValueError('Can not determine encoding for {}'.format(data))
      else:
          return codec