class_docstr: Encode strings to bytes-like and decode bytes-like to strings
class_docstr_tok: ["Encode","strings","to","bytes-like","and","decode","bytes-like","to","strings"]
docstr: Return a unicode string from the bytes-like representation
docstr_tok: ["Return","a","unicode","string","from","the","bytes-like","representation"]
code: def decode(self, value, force=False):
      "Return a unicode string from the bytes-like representation"
      if self.decode_responses or force:
          if isinstance(value, memoryview):
              value = value.tobytes()
          if isinstance(value, bytes):
              value = value.decode(self.encoding, self.encoding_errors)
      return value
  
imports: from ..exceptions import DataError
label_desc: Use image node_id 3 for calling the Encoder obj's underlying member method code with example usage: obj.decode(value, force) and returns: value