def dump(document, accept=None, encoders=None, **kwargs):
    codec = negotiate_encoder(accept, encoders=encoders)
    content = codec.dump(document, **kwargs)
    return (codec.media_type, content)
Given a document, and an optional accept header, return a two-tuple of
dataset/ETHPy150Open core-api/python-client/coreapi/codecs/__init__.py/dump