code: def bimodal_encoder(params):
      return BiModalEncoder.from_params(params.duplicate())
  
file_path: allennlp/tests/modules/transformer/bimodal_encoder_test.py
imports: import torch
  from torch.testing import assert_allclose
  from transformers import AutoModel
  import pytest
  from allennlp.common import Params
  from allennlp.modules.transformer import BiModalEncoder
label_desc: Use image node_id 3 for calling a global function with example usage: bimodal_encoder(params) and returns: BiModalEncoder