def __init__(self, metadata=None):
self.metadata = metadata or {}<EOL>
Create a serializer based on the given WSGI environment.

        'metadata' is an optional dict mapping MIME types to information
        needed to serialize a dictionary to that type.