code: def test_time_distributed_reshapes_named_arg_correctly(self):
      char_embedding = Embedding(2, 2)
      char_embedding.weight = Parameter(
          torch.FloatTensor([[0.4, 0.4], [0.5, 0.5]])
      )
      distributed_embedding = TimeDistributed(char_embedding)
      char_input = torch.LongTensor([[[1, 0], [1, 1]]])
      output = distributed_embedding(char_input)
      assert_almost_equal(
          output.data.numpy(),
          [[[[0.5, 0.5], [0.4, 0.4]], [[0.5, 0.5], [0.5, 0.5]]]],
      )
  
file_path: allennlp/tests/modules/time_distributed_test.py
imports: from numpy.testing import assert_almost_equal
  import torch
  from torch.nn import Embedding, Module, Parameter
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.modules import TimeDistributed
label_desc: Use image node_id 1 for calling the TestTimeDistributed obj's underlying member method code with example usage: obj.test_time_distributed_reshapes_named_arg_correctly() without return types