class_docstr: Base class to apply hidden state transformations
class_docstr_tok: ["Base","class","to","apply","hidden","state","transformations"]
docstr: Validate inputs
docstr_tok: ["Validate","inputs"]
code: def _validate_inputs(self, inputs):
      """Validate inputs"""
      # validate inputs
      if not set(self.input_names).issubset(set(inputs.keys())):
          raise ValueError(
              f"Inputs should contain {self.input_names}, but got {inputs.keys()}"
          )
  
file_path: NeMo/nemo/collections/nlp/modules/common/megatron/hiddens/megatron_hidden_transform.py
imports: import math
  import torch
  from nemo.collections.nlp.modules.common.megatron.utils import ApexGuardDefaults, init_method_normal
label_desc: Use image node_id 5 for calling the MegatronBaseHiddenTransform obj's underlying member method code with example usage: obj._validate_inputs(inputs) without return types