def _ws_defaults(data):
    """Set some defaults for the required workspace fields."""
    defaults = {
        "owner": "owner",
        "max_obj_id": 1,
        "lock_status": "n",
        "name": "wsname",
        "mod_epoch": 1,
        "is_public": True,
        "is_deleted": False,
        "metadata": {"narrative_nice_name": "narrname"},
    }
    # Merge the data with the above defaults
    return dict(defaults, **data)