import json


def get_dataset(request):
    """Get a dataset from the request.

    :param request: The falcon request object.
    :type request: :obj:`falcon.request`
    :return: An IUT provider ID.
    :rtype: dict
    """
    dataset = request.media.get("dataset")
    if dataset is not None:
        if not isinstance(dataset, dict):
            dataset = json.loads(dataset)
    return dataset