code: def test_no_instances_read_for_vocab(self, caplog, params):
      _ = make_vocab_from_params(params, str(self.TEST_DIR))
      log_messages = "\n".join([rec.message for rec in caplog.records])
      assert (
          "...train-util-test-reader reading from" not in log_messages
      )
      assert "Reading training data" not in log_messages
      assert "Reading validation data" not in log_messages
      assert "Reading test data" not in log_messages
  
imports: import logging
  import os
  import pickle
  import pytest
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.params import Params
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data.instance import Instance
  from allennlp.data.dataset_readers import DatasetReader
  from allennlp.data.fields import LabelField
  from allennlp.models import Model
  from allennlp.training.util import make_vocab_from_params, get_metrics
label_desc: Use image node_id 1 for calling the TestMakeVocabFromParams obj's underlying member method code with example usage: obj.test_no_instances_read_for_vocab(caplog, params) without return types