code: def print_bottleneck_p_and_b(bottleneck):
      with torch.no_grad():
          for n, p in bottleneck.named_parameters():
              print(
                  "%s :: %s"
                  % (n, str(p.norm(p=2, dtype=torch.float32)))
              )
          for n, p in bottleneck.named_buffers():
              print(
                  "%s :: %s"
                  % (n, str(p.norm(p=2, dtype=torch.float32)))
              )
  
imports: import unittest
  import torch
  from torch.testing._internal import common_utils
  from apex.transformer.testing.distributed_test_base import NcclDistributedTestBase
label_desc: Use image node_id 2 for calling a global function with example usage: print_bottleneck_p_and_b(bottleneck) without return types