code: def get_rotary_dim(self):
      if hasattr(self.model_config, "rotary_dim"):
          return self.model_config.rotary_dim
      if hasattr(self.child, "attention") and hasattr(
          self.child.attention, "rotary_ndims"
      ):
          return self.child.attention.rotary_ndims
      return -1
  
imports: from abc import ABC
  import torch
  import deepspeed
  from deepspeed.ops.transformer.inference.config import DeepSpeedInferenceConfig
  from deepspeed.accelerator import get_accelerator
label_desc: Use image node_id 6 for calling the BaseTransformerContainer obj's underlying member method code with example usage: obj.get_rotary_dim() and returns: unknown, self, self