code: def test_explicit_kwargs_always_passed_to_constructor(self):
      class Base(FromParams):
          def __init__(self, lazy: bool = False, x: int = 0) -> None:
              self.lazy = lazy
              self.x = x
  
      class A(Base):
          def __init__(self, **kwargs) -> None:
              assert "lazy" in kwargs
              super().__init__(**kwargs)
  
      A.from_params(Params({"lazy": False}))
  
      class B(Base):
          def __init__(self, **kwargs) -> None:
              super().__init__(lazy=True, **kwargs)
  
      b = B.from_params(Params({}))
      assert b.lazy is True
  
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 31 for calling the TestFromParams obj's underlying member method code with example usage: obj.test_explicit_kwargs_always_passed_to_constructor() without return types