code: def log_hyperparams(self, params, *args, **kwargs) -> None:
      if self.clearml_model and self.clearml_cfg.log_cfg:
          if isinstance(params, Namespace):
              params = vars(params)
          elif isinstance(params, AttributeDict):
              params = dict(params)
          params = apply_to_collection(
              params,
              (DictConfig, ListConfig),
              OmegaConf.to_container,
              resolve=True,
          )
          params = apply_to_collection(params, Path, str)
          params = OmegaConf.to_yaml(params)
          self.clearml_model.update_design(config_text=params)
  
imports: import os
  from argparse import Namespace
  from dataclasses import dataclass
  from pathlib import Path
  from typing import Any, List, Literal, Mapping, Optional, Union
  import pandas
  from lightning_utilities.core.apply_func import apply_to_collection
  from omegaconf import DictConfig, ListConfig, OmegaConf
  from pytorch_lightning.callbacks import Checkpoint
  from pytorch_lightning.loggers import Logger
  from pytorch_lightning.utilities.parsing import AttributeDict
  from torch import Tensor
  from nemo.utils import logging
label_desc: Use image node_id 4 for calling the ClearMLLogger obj's underlying member method code with example usage: obj.log_hyperparams(params) without return types