code: def test_make_vocab_args(self):
      parser = argparse.ArgumentParser(description="Testing")
      subparsers = parser.add_subparsers(title="Commands", metavar="")
      DryRun().add_subparser("dry-run", subparsers)
      for serialization_arg in ["-s", "--serialization-dir"]:
          raw_args = [
              "dry-run",
              "path/to/params",
              serialization_arg,
              "serialization_dir",
          ]
          args = parser.parse_args(raw_args)
          assert args.func == dry_run_from_args
          assert args.param_path == "path/to/params"
          assert args.serialization_dir == "serialization_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.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 7 for calling the TestDryRun obj's underlying member method code with example usage: obj.test_make_vocab_args() without return types