code: def test_create_kwargs(self):
      kwargs = create_kwargs(
          MyClass,
          MyClass,
          Params({"my_int": 5}),
          my_bool=True,
          my_float=4.4,
      )
  
      # my_float should not be included because it's not a param of the MyClass constructor
      assert kwargs == {"my_int": 5, "my_bool": 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 5 for calling the TestFromParams obj's underlying member method code with example usage: obj.test_create_kwargs() without return types