code: def set_encoding_format(self, encoding_format):
      
      supported = ENCODE_FN.keys()
      if encoding_format not in supported:
        raise ValueError('`encoding_format` must be one of %s.' % supported)
      self._encoding_format = encoding_format
docs: Update the encoding format.