code: def test_dry_run_without_extension(self):
      existing_serialization_dir = self.TEST_DIR / "existing"
      extended_serialization_dir = self.TEST_DIR / "extended"
      existing_vocab_path = existing_serialization_dir / "vocabulary"
      extended_vocab_path = extended_serialization_dir / "vocabulary"
  
      vocab = Vocabulary()
      # if extend is False, its users responsibility to make sure that dataset instances
      # will be indexible by provided vocabulary. At least @@UNKNOWN@@ should be present in
      # namespace for which there could be OOV entries seen in dataset during indexing.
      # For `tokens` ns, new words will be seen but `tokens` has @@UNKNOWN@@ token.
      # but for 'labels' ns, there is no @@UNKNOWN@@ so required to add 'N', 'V' upfront.
      vocab.add_token_to_namespace(
          "some_weird_token_1", namespace="tokens"
      )
      vocab.add_token_to_namespace(
          "some_weird_token_2", namespace="tokens"
      )
      vocab.add_token_to_namespace("N", namespace="labels")
      vocab.add_token_to_namespace("V", namespace="labels")
      os.makedirs(existing_serialization_dir, exist_ok=True)
      vocab.save_to_files(existing_vocab_path)
  
      self.params["vocabulary"] = {}
      self.params["vocabulary"]["directory_path"] = existing_vocab_path
      self.params["vocabulary"]["extend"] = False
      dry_run_from_params(self.params, extended_serialization_dir)
  
      with open(extended_vocab_path / "tokens.txt") as f:
          tokens = [line.strip() for line in f]
  
      assert tokens[0] == "@@UNKNOWN@@"
      assert tokens[1] == "some_weird_token_1"
      assert tokens[2] == "some_weird_token_2"
      assert len(tokens) == 3
  
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.dry_run import DryRun, dry_run_from_args, dry_run_from_params
  from allennlp.data import Vocabulary
  from allennlp.common.checks import ConfigurationError
  from io import open
label_desc: Use image node_id 6 for calling the TestDryRun obj's underlying member method code with example usage: obj.test_dry_run_without_extension() without return types