code: def test_replace_bn_with_fused_bn(self):
      model = nn.Sequential(
          OrderedDict(
              [
                  ("linear1", nn.Linear(1, 10)),
                  ("bn1", nn.BatchNorm1d(10)),
                  ("relu1", nn.ReLU()),
                  ("linear2", nn.Linear(10, 11)),
                  ("bn2", nn.BatchNorm1d(11)),
                  (
                      "submodule1",
                      nn.Sequential(
                          OrderedDict(
                              [
                                  ("linear3", nn.Linear(11, 12)),
                                  ("bn3", nn.BatchNorm1d(12)),
                              ]
                          )
                      ),
                  ),
              ]
          )
      )
      replace_bn_with_fused_bn(model, "submodule1.bn3")
      assert isinstance(model.bn1, nn.BatchNorm1d)
      assert isinstance(model.bn2, nn.BatchNorm1d)
      assert isinstance(model.submodule1.bn3, FusedBatchNorm1d)
  
file_path: NeMo/tests/collections/asr/test_asr_parts_submodules_batchnorm.py
imports: from collections import OrderedDict
  import pytest
  import torch
  import torch.nn
  from nemo.collections.asr.parts.submodules.batchnorm import FusedBatchNorm1d, replace_bn_with_fused_bn, replace_bn_with_fused_bn_all
label_desc: Use image node_id 1 for calling the TestReplaceBNWithFusedBN obj's underlying member method code with example usage: obj.test_replace_bn_with_fused_bn() without return types