class_docstr: BERT attention layer.
  Based on: BERT (pytorch-transformer)
  https://github.com/huggingface/transformers
code: def transpose_for_scores(self, x):
      new_x_shape = x.size()[:-1] + (
          self.num_attention_heads,
          self.attention_head_size,
      )
      x = x.view(*new_x_shape)
      return x.permute(0, 2, 1, 3)
  
imports: from __future__ import annotations
  import math
  from collections.abc import Sequence
  import torch
  from torch import nn
  from monai.config.type_definitions import PathLike
  from monai.utils import optional_import
label_desc: Use image node_id 2 for calling the BertAttention obj's underlying member method code with example usage: obj.transpose_for_scores(x) and returns: x