def _parse_data(data, data_args):
    """Parse different types of arguments"""
    data = data or {}
    if isinstance(data, dict):
        for k in data_args:
            data[k] = data_args[k]
    elif isinstance(data, list) and len(data_args.keys()) > 0:
        data.append(data_args)
    return data if len(data) > 0 else None
