<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def loads(data, cls=PVLDecoder, strict=True, **kwargs):
 """Deserialize ``data`` as a pvl module. :param data: a pvl module as a byte or unicode string :param cls: the decoder class used to deserialize the pvl module. You may use the default ``PVLDecoder`` class or provide a custom sublcass. :param **kwargs: the keyword arguments to pass to the decoder class. """

    decoder = __create_decoder(cls, strict, **kwargs)
    if not isinstance(data, bytes):
        data = data.encode('utf-8')
    return decoder.decode(data)