code: def test_fine_tune_fails_without_required_args(self):
      # Configuration file is required.
      with self.assertRaises(SystemExit) as context:
          self.parser.parse_args(
              [
                  "fine-tune",
                  "-m",
                  "path/to/archive",
                  "-s",
                  "serialization_dir",
              ]
          )
          assert (
              context.exception.code == 2
          )  # argparse code for incorrect usage
  
      # Serialization dir is required.
      with self.assertRaises(SystemExit) as context:
          self.parser.parse_args(
              [
                  "fine-tune",
                  "-m",
                  "path/to/archive",
                  "-c",
                  "path/to/config",
              ]
          )
          assert (
              context.exception.code == 2
          )  # argparse code for incorrect usage
  
      # Model archive is required.
      with self.assertRaises(SystemExit) as context:
          self.parser.parse_args(
              [
                  "fine-tune",
                  "-s",
                  "serialization_dir",
                  "-c",
                  "path/to/config",
              ]
          )
          assert context.exception.code == 2
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/commands/fine_tune_test.py
imports: from __future__ import with_statement
  from __future__ import division
  from __future__ import absolute_import
  import argparse
  import re
  import shutil
  import pytest
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.commands.fine_tune import FineTune, fine_tune_model_from_file_paths, fine_tune_model_from_args, fine_tune_model
  from allennlp.common.params import Params
  from allennlp.models import load_archive
label_desc: Use image node_id 6 for calling the TestFineTune obj's underlying member method code with example usage: obj.test_fine_tune_fails_without_required_args() without return types