code: def get_normalized_sqrt_label_weights(
      vocab_dict: Dict[str, int], label_counts: Counter
  ):
      """
      label weights automatically calculated from training data, normalized by sqrt
      """
      auto_weights_tensor = get_auto_label_weights(
          vocab_dict, label_counts
      )
      return torch.sqrt(auto_weights_tensor)
  
file_path: pytext/pytext/utils/label.py
imports: import logging
  from collections import Counter
  from typing import Dict
  import torch
  from pytext.utils.cuda import tensor
  from pytext.utils.typing import WeightingMethod
label_desc: Use image node_id 5 for calling a global function with example usage: get_normalized_sqrt_label_weights(vocab_dict, label_counts) and returns: torch