<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load(stream, cls=PVLDecoder, strict=True, **kwargs):
 """Deserialize ``stream`` as a pvl module. :param stream: a ``.read()``-supporting file-like object containing a module. If ``stream`` is a string it will be treated as a filename :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 isinstance(stream, six.string_types):
        with open(stream, 'rb') as fp:
            return decoder.decode(fp)
    return decoder.decode(stream)