code: def set_ptr(self, ptr):
          # type: (path_table_record.PathTableRecord) -> None
          '''
          A method to set the Path Table Record associated with this Directory
          Record.
  
          Parameters:
           ptr - The path table record to associate with this Directory Record.
          Returns:
           Nothing.
          '''
          if not self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Directory Record not yet initialized')
  
          self.ptr = ptf set_ptr(self, ptr):
          # type: (path_table_record.PathTableRecord) -> None
          '''
          A method to set the Path Table Record associated with this Directory
          Record.
  
          Parameters:
           ptr - The path table record to associate with this Directory Record.
          Returns:
           Nothing.
          '''
          if not self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Directory Record not yet initialized')
  
          self.ptr = ptr
docs: A method to set the Path Table Record associated with this Directory
          Record.
  
          Parameters:
           ptr - The path table record to associate with this Directory Record.
          Returns:
           Nothing.