docstr: Ensure omegaconf raises an error when an unexcepted argument is passed
docstr_tok: ["Ensure","omegaconf","raises","an","error","when","an","unexcepted","argument","is","passed"]
code: def test_omegaconf(self):
      """Ensure omegaconf raises an error when an unexcepted argument is passed"""
      with pytest.raises(OmegaConfBaseException):
          exp_manager(pl.Trainer(accelerator="cpu"), {"unused": 1})
  
imports: import math
  import os
  import re
  from pathlib import Path
  from typing import Any
  import pytest
  import pytorch_lightning
  import torch
  from omegaconf import OmegaConf
  from omegaconf.errors import OmegaConfBaseException
  from pytorch_lightning import Callback
  from pytorch_lightning.loops import _TrainingEpochLoop
  from nemo.constants import NEMO_ENV_VARNAME_VERSION
  from nemo.core.classes import ModelPT
  from nemo.utils.exp_manager import CheckpointMisconfigurationError, LoggerMisconfigurationError, NotFoundError, exp_manager
label_desc: Use image node_id 1 for calling the TestExpManager obj's underlying member method code with example usage: obj.test_omegaconf() without return types