code: def test_make_vocab_doesnt_overwrite_vocab(self):
      vocab_path = self.TEST_DIR / "vocabulary"
      os.mkdir(vocab_path)
      # Put something in the vocab directory
      with open(vocab_path / "test.txt", "a+") as open_file:
          open_file.write("test")
      # It should raise error if vocab dir is non-empty
      with pytest.raises(ConfigurationError):
          make_vocab_from_params(self.params, self.TEST_DIR)
  
imports: from __future__ import with_statement
  from __future__ import division
  from __future__ import absolute_import
  import argparse
  import os
  import pytest
  from allennlp.common import Params
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.commands.make_vocab import MakeVocab, make_vocab_from_args, make_vocab_from_params
  from allennlp.data import Vocabulary
  from allennlp.common.checks import ConfigurationError
  from io import open
label_desc: Use image node_id 2 for calling the TestMakeVocab obj's underlying member method code with example usage: obj.test_make_vocab_doesnt_overwrite_vocab() without return types