<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def as_dframe(cls, dataset):
 """ Returns the data of a Dataset as a dataframe avoiding copying if it already a dataframe type. """

        if issubclass(dataset.interface, PandasInterface):
            return dataset.data
        else:
            return dataset.dframe()