code: def make_docbin(docs, name="roundtrip.spacy"):
      with make_tempdir() as tmpdir:
          output_file = tmpdir / name
          DocBin(docs=docs).to_disk(output_file)
          yield output_file
  
file_path: spaCy/spacy/tests/training/test_augmenters.py
imports: import random
  from contextlib import contextmanager
  import pytest
  from spacy.lang.en import English
  from spacy.pipeline._parser_internals.nonproj import contains_cycle
  from spacy.tokens import Doc, DocBin, Span
  from spacy.training import Corpus, Example
  from spacy.training.augment import create_lower_casing_augmenter, create_orth_variants_augmenter, make_whitespace_variant
  from ..util import make_tempdir
label_desc: Use image node_id 1 for calling a global function with example usage: make_docbin(docs, name) without return types