code: def add_child(self, child, logical_block_size, allow_duplicate=False):
          # type: (DirectoryRecord, int, bool) -> bool
          '''
          A method to add a new child to this directory record.
  
          Parameters:
           child - The child directory record object to add.
           logical_block_size - The size of a logical block for this volume descriptor.
           allow_duplicate - Whether to allow duplicate names, as there are
                             situations where duplicate children are allowed.
          Returns:
           True if adding this child caused the directory to overflow into another
           extent, False otherwise.
          '''
          if not self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Directory Record not yet initialized')
  
          return self._add_child(child, logical_block_size, allow_duplicate, Truef add_child(self, child, logical_block_size, allow_duplicate=False):
          # type: (DirectoryRecord, int, bool) -> bool
          '''
          A method to add a new child to this directory record.
  
          Parameters:
           child - The child directory record object to add.
           logical_block_size - The size of a logical block for this volume descriptor.
           allow_duplicate - Whether to allow duplicate names, as there are
                             situations where duplicate children are allowed.
          Returns:
           True if adding this child caused the directory to overflow into another
           extent, False otherwise.
          '''
          if not self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Directory Record not yet initialized')
  
          return self._add_child(child, logical_block_size, allow_duplicate, True)
docs: A method to add a new child to this directory record.
  
          Parameters:
           child - The child directory record object to add.
           logical_block_size - The size of a logical block for this volume descriptor.
           allow_duplicate - Whether to allow duplicate names, as there are
                             situations where duplicate children are allowed.
          Returns:
           True if adding this child caused the directory to overflow into another
           extent, False otherwise.