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

def finish_directory_parse(self):
        # type: () -> None
        '''
        A method to finish up the parsing of this UDF File Entry directory.
        In particular, this method checks to see if it is in sorted order for
        future use.

        Parameters:
         None.
        Returns:
         Nothing.
        '''
        if not self._initialized:
            raise pycdlibexception.PyCdlibInternalError('UDF File Entry not initialized')

        if self.icb_tag.file_type != 4:
            raise pycdlibexception.PyCdlibInternalError('Can only finish_directory for a directory')