docstr: Instantiates an instance of NeMo Model from YAML config file.
  Weights will be initialized randomly.
  Args:
      path2yaml_file: path to yaml file with model configuration
  
  Returns:
docstr_tok: ["Instantiates","an","instance","of","NeMo","Model","from","YAML","config","file",".","Weights","will","be","initialized","randomly",".","Args",":","path2yaml_file",":","path","to","yaml","file","with","model","configuration","Returns",":"]
code: def from_config_file(cls, path2yaml_file: str):
      """
      Instantiates an instance of NeMo Model from YAML config file.
      Weights will be initialized randomly.
      Args:
          path2yaml_file: path to yaml file with model configuration
  
      Returns:
  
      """
      if issubclass(cls, Serialization):
          conf = OmegaConf.load(path2yaml_file)
          return cls.from_config_dict(config=conf)
      else:
          raise NotImplementedError()
  
imports: import hashlib
  import inspect
  import traceback
  from abc import ABC, abstractmethod
  from contextlib import contextmanager
  from dataclasses import dataclass, field
  from enum import Enum
  from functools import total_ordering
  from pathlib import Path
  from typing import Dict, Iterable, List, Optional, Tuple, Union
  import hydra
  import torch
  import wrapt
  from huggingface_hub import HfApi, HfFolder, ModelFilter, hf_hub_download
  from huggingface_hub.hf_api import ModelInfo
  from omegaconf import DictConfig, OmegaConf
  import nemo
  from nemo.core.connectors.save_restore_connector import SaveRestoreConnector
  from nemo.core.neural_types import NeuralType, NeuralTypeComparisonResult
  from nemo.utils import logging
  from nemo.utils.cloud import maybe_download_from_cloud
  from nemo.utils.data_utils import resolve_cache_dir
  from nemo.utils.model_utils import import_class_by_path, maybe_update_config_version
label_desc: Use image node_id 3 for calling the FileIO obj's underlying member method code with example usage: obj.from_config_file(cls, path2yaml_file) and returns: cls