def _get_forms(dataset):
    """
    Return the list of Form `dict`'s for a `cldfbench.CLDFWriter` or a `pycldf.Dataset`.
    """
    return dataset.objects['FormTable'] \
        if (hasattr(dataset, 'objects') and isinstance(dataset.objects, dict)) \
        else list(dataset['FormTable'])