<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def get_data_length(self):
        # type: () -> int
        '''
        A method to get the length of the data that this Directory Record
        points to.

        Parameters:
         None.
        Returns:
         The length of the data that this Directory Record points to.
        '''
        if not self._initialized:
            raise pycdlibexception.PyCdlibInternalError('Directory Record not yet initialized')
        if self.inode is not None:
            return self.inode.get_data_length()
        return self.data_length