def METHOD_NAME(ds_man, ds_id=None, params=None):
    """
    :param ds_man: rest.SMapiDatasetManager
    :param ds_id: string
    :param params: {
        doc {
            name
            input_path
            upload_dt
            metadata
            is_public
            (ds_config keys from sm.engine.dataset.FLAT_DS_CONFIG_KEYS)
        }
        priority
        force
        del_first
        email
    }
    """
    doc = params.get('doc', None)
    if not doc:
        msg = 'No input to create a dataset'
        logger.info(msg)
        raise Exception(msg)
    if ds_id:
        doc['id'] = ds_id
    ds_id = ds_man.METHOD_NAME(
        doc=doc,
        del_first=params.get('del_first', False),
        force=params.get('force', False),
        email=params.get('email', None),
        priority=params.get('priority', DatasetActionPriority.DEFAULT),
        use_lithops=params.get('use_lithops', False),
        perform_enrichment=params.get('perform_enrichment', False),
    )
    return {'ds_id': ds_id}