code: def get_registered_hiddens():
      """
      Return:
          A dictionary with all registered hidden transforms and losses.
  
      Example:
          {
              "loss": ["a_mim", "vae"],
              "transform": ["cond_gaussian"],
          }
      """
      return {
          "loss": list(_LOSS_CLASS_REGISTRY.keys()),
          "transform": list(_TRANSFORM_CLASS_REGISTRY.keys()),
      }
  
imports: import functools
  import itertools
  from typing import List
  import torch
  from omegaconf.dictconfig import DictConfig
  from omegaconf.omegaconf import OmegaConf
  from nemo.collections.nlp.modules.common.megatron.hiddens.megatron_hidden_loss import MegatronBaseHiddenLoss
  from nemo.collections.nlp.modules.common.megatron.hiddens.megatron_hidden_transform import MegatronBaseHiddenTransform
  from nemo.collections.nlp.modules.common.megatron.utils import ApexGuardDefaults
  from nemo.utils import logging
  from nemo.utils.model_utils import import_class_by_path
label_desc: Use image node_id 1 for calling a global function with example usage: get_registered_hiddens() and returns: dict