'Convenience class method to get column metadata from a dataset.
:returns: a dictionary of `column_count`, `column_types`, and `column_names`
if they\'re available, setting each to `None` if not.'

@classmethod
def get_column_metadata_from_dataset(cls, dataset):

    params = {}
    params['column_count'] = dataset.metadata.columns
    params['column_types'] = dataset.metadata.column_types
    params['column_names'] = (dataset.metadata.column_names or getattr(dataset.datatype, 'column_names', None))
    return params
