docstr: Make sure exceptions are raised when audio_file is a relative path and
  manifest is not provided or both manifest and data dir are provided simultaneously.
docstr_tok: ["Make","sure","exceptions","are","raised","when","audio_file","is","a","relative","path","and","manifest","is","not","provided","or","both","manifest","and","data","dir","are","provided","simultaneously","."]
code: def test_get_full_path_invalid_relative_path(self):
      """Make sure exceptions are raised when audio_file is a relative path and
      manifest is not provided or both manifest and data dir are provided simultaneously.
      """
      with pytest.raises(
          ValueError, match="Use either manifest_file or data_dir"
      ):
          # Using a relative path without manifest_file or data_dir is not allowed
          get_full_path("relative/path")
  
      with pytest.raises(
          ValueError,
          match="Parameters manifest_file and data_dir cannot be used simultaneously.",
      ):
          # Using a relative path without both manifest_file or data_dir is not allowed
          get_full_path(
              "relative/path",
              manifest_file="/manifest_dir/file.json",
              data_dir="/data/dir",
          )
  
file_path: NeMo/tests/collections/common/test_utils.py
imports: import os
  import string
  from contextlib import contextmanager
  from pathlib import Path
  from unittest import mock
  import numpy
  import pytest
  from nemo.collections.common.parts.preprocessing.manifest import get_full_path, is_tarred_dataset
  from nemo.collections.common.parts.utils import flatten
label_desc: Use image node_id 5 for calling the TestPreprocessingUtils obj's underlying member method code with example usage: obj.test_get_full_path_invalid_relative_path() without return types