code: def test_forward_runs_with_forward_params(self):
      class FakeEmbedder(torch.nn.Module):
          def __init__(self):
              super().__init__()
  
          def forward(
              self, tokens: torch.Tensor, extra_arg: int = None
          ):
              assert tokens is not None
              assert extra_arg is not None
              return tokens
  
      token_embedder = BasicTextFieldEmbedder({"elmo": FakeEmbedder()})
      inputs = {
          "elmo": {"elmo_tokens": (torch.rand(3, 6, 5) * 2).long()}
      }
      kwargs = {"extra_arg": 1}
      token_embedder(inputs, **kwargs)
  
file_path: allennlp/tests/modules/text_field_embedders/basic_text_field_embedder_test.py
imports: import pytest
  import torch
  from allennlp.common import Params
  from allennlp.common.checks import ConfigurationError
  from allennlp.data import Vocabulary
  from allennlp.modules.text_field_embedders import BasicTextFieldEmbedder
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 6 for calling the TestBasicTextFieldEmbedder obj's underlying member method code with example usage: obj.test_forward_runs_with_forward_params() and returns: tokens