docstr: Method makes sure that cfg.data_desc params are set.
  If not, set's them to "dummy" defaults.
docstr_tok: ["Method","makes","sure","that","cfg.data_desc","params","are","set",".","If","not",",","set","'s","them","to","``","dummy","''","defaults","."]
code: def _set_defaults_data_desc(self, cfg):
      """
      Method makes sure that cfg.data_desc params are set.
      If not, set's them to "dummy" defaults.
      """
      if not hasattr(cfg, "data_desc"):
          OmegaConf.set_struct(cfg, False)
          cfg.data_desc = {}
          # Intents.
          cfg.data_desc.intent_labels = " "
          cfg.data_desc.intent_label_ids = {" ": 0}
          cfg.data_desc.intent_weights = [1]
          # Slots.
          cfg.data_desc.slot_labels = " "
          cfg.data_desc.slot_label_ids = {" ": 0}
          cfg.data_desc.slot_weights = [1]
  
          cfg.data_desc.pad_label = "O"
          OmegaConf.set_struct(cfg, True)
  
imports: import os
  from typing import Dict, List, Optional
  import torch
  from omegaconf import DictConfig, OmegaConf
  from pytorch_lightning import Trainer
  from torch.utils.data import DataLoader
  from nemo.collections.common.losses import AggregatorLoss, CrossEntropyLoss
  from nemo.collections.nlp.data.dialogue.data_processor.assistant_data_processor import DialogueAssistantDataProcessor
  from nemo.collections.nlp.data.dialogue.dataset.dialogue_bert_dataset import DialogueBERTDataset, DialogueIntentSlotInferenceDataset
  from nemo.collections.nlp.data.intent_slot_classification import IntentSlotDataDesc
  from nemo.collections.nlp.metrics.classification_report import ClassificationReport
  from nemo.collections.nlp.metrics.dialogue_metrics import DialogueClassificationMetrics
  from nemo.collections.nlp.models.nlp_model import NLPModel
  from nemo.collections.nlp.modules.common import SequenceTokenClassifier
  from nemo.collections.nlp.parts.utils_funcs import tensor2list
  from nemo.core.classes import typecheck
  from nemo.core.classes.common import PretrainedModelInfo
  from nemo.utils import logging
label_desc: Use image node_id 2 for calling the IntentSlotClassificationModel obj's underlying member method code with example usage: obj._set_defaults_data_desc(cfg) without return types