  
          DOCS: https://nightly.spacy.io/api/docbin#merge
          """
          if self.attrs != other.attrs:
              raise ValueError(Errors.E166.format(current=self.attrs, other=other.attrs))
          self.tokens.extend(other.tokens)
          self.spaces.extend(other.spaces)
          self.strings.update(other.strings)
          self.cats.extend(other.cats)
          self.flags.extend(other.flags)
 
</s> remove         if self.store_user_data:
            self.user_data.extend(other.user_data)
 </s> add         self.user_data.extend(other.user_data) </s> remove         DocBins don't match.
 </s> add         DocBins don't match, or if they differ in whether or not to store
        user data. </s> remove         store_user_data (bool): Whether to include the `Doc.user_data`.
 </s> add         store_user_data (bool): Whether to write the `Doc.user_data` to bytes/file. </s> remove             if self.store_user_data:
 </s> add             if i < len(self.user_data) and self.user_data[i] is not None: </s> remove         if self.store_user_data and "user_data" in msg:
 </s> add         if "user_data" in msg:
            raise ValueError(
                Errors.E166.format(param="attrs", current=self.attrs, other=other.attrs)
            )
        if self.store_user_data != other.store_user_data:
            raise ValueError(
                Errors.E166.format(
                    param="store_user_data",
                    current=self.store_user_data,
                    other=other.store_user_data,
                )
            )
  
          DOCS: https://nightly.spacy.io/api/docbin#merge
          """
          if self.attrs != other.attrs:
            raise ValueError(
                Errors.E166.format(param="attrs", current=self.attrs, other=other.attrs)
            )
        if self.store_user_data != other.store_user_data:
            raise ValueError(
                Errors.E166.format(
                    param="store_user_data",
                    current=self.store_user_data,
                    other=other.store_user_data,
                )
            )
          self.tokens.extend(other.tokens)
          self.spaces.extend(other.spaces)
          self.strings.update(other.strings)
          self.cats.extend(other.cats)
          self.flags.extend(other.flags)
keep keep keep keep replace keep keep keep keep keep
 small UX fix for DocBin (#6167)

* add informative warning when messing up store_user_data DocBin flags

* add informative warning when messing up store_user_data DocBin flags

* cleanup test

* rename to patterns_path 
spacy/tokens/_serialize.py