<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def datapoint(self, ind):
 """ Returns the datapoint at the given index. """

        if self.height is None:
            return self.data[ind]
        return self.data[ind, ...].copy()