def load(schema, d):
    """ function to wrap marshmallow load to smooth
        differences from marshmallow 2 to 3

    Parameters
    ----------
    schema: marshmallow.Schema
        schema that you want to use to validate
    d: dict
        dictionary to validate and load

    Returns
    -------
    dict
        deserialized and validated dictionary

    Raises
    ------
    marshmallow.ValidationError
        if the dictionary does not conform to the schema
    """
    results = schema.load(d)
    return results
