code: def test_forward(self):
      encoder_layer = TFEncoderLayer()
      in_enc = torch.rand(1, 20, 512)
      out_enc = encoder_layer(in_enc)
      self.assertEqual(out_enc.shape, torch.Size([1, 20, 512]))
  
      encoder_layer = TFEncoderLayer(
          operation_order=("self_attn", "norm", "ffn", "norm")
      )
      out_enc = encoder_layer(in_enc)
      self.assertEqual(out_enc.shape, torch.Size([1, 20, 512]))
  
file_path: mmocr/tests/test_models/test_common/test_layers/test_transformer_layers.py
imports: from unittest import TestCase
  import torch
  from mmocr.models.common.layers.transformer_layers import TFDecoderLayer, TFEncoderLayer
label_desc: Use image node_id 1 for calling the TestTFEncoderLayer obj's underlying member method code with example usage: obj.test_forward() without return types