code: def test_raises_when_there_are_no_implementations(self):
      class A(Registrable):
          pass
  
      with pytest.raises(
          ConfigurationError, match="no registered concrete types"
      ):
          A.from_params("nonexistent_class")
  
      with pytest.raises(
          ConfigurationError, match="no registered concrete types"
      ):
          A.from_params(
              Params({"some_spurious": "key", "value": "pairs"})
          )
  
      with pytest.raises(
          ConfigurationError, match="no registered concrete types"
      ):
          A.from_params(Params({}))
  
      # Some paths through the code are different if there is a constructor here versus not.  We
      # don't actually go through this logic anymore, but it's here as a regression test.
      class B(Registrable):
          def __init__(self):
              pass
  
      with pytest.raises(
          ConfigurationError, match="no registered concrete types"
      ):
          B.from_params("nonexistent_class")
  
      with pytest.raises(
          ConfigurationError, match="no registered concrete types"
      ):
          B.from_params(
              Params({"some_spurious": "key", "value": "pairs"})
          )
  
      with pytest.raises(
          ConfigurationError, match="no registered concrete types"
      ):
          B.from_params(Params({}))
  
imports: from typing import Dict, Iterable, List, Mapping, Optional, Set, Tuple, Union
  import pytest
  import torch
  from allennlp.common import Lazy, Params, Registrable
  from allennlp.common.from_params import FromParams, takes_arg, remove_optional, create_kwargs
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import DataLoader, DatasetReader, Tokenizer
  from allennlp.models import Model
  from allennlp.models.archival import load_archive
  from allennlp.common.checks import ConfigurationError
label_desc: Use image node_id 32 for calling the TestFromParams obj's underlying member method code with example usage: obj.test_raises_when_there_are_no_implementations() without return types