docstr: Test with audio_file_len_limit.
  Currently, get_full_path will always return the input path when the length
  is over audio_file_len_limit, independend of whether the file exists.
docstr_tok: ["Test","with","audio_file_len_limit",".","Currently",",","get_full_path","will","always","return","the","input","path","when","the","length","is","over","audio_file_len_limit",",","independend","of","whether","the","file","exists","."]
code: def test_get_full_path_audio_file_len_limit(self):
      """Test with audio_file_len_limit.
      Currently, get_full_path will always return the input path when the length
      is over audio_file_len_limit, independend of whether the file exists.
      """
      # Create a few files
      num_examples = 10
      rand_chars = list(
          string.ascii_uppercase
          + string.ascii_lowercase
          + string.digits
          + os.sep
      )
      rand_name = lambda n: "".join(
          np.random.choice(rand_chars, size=n)
      )
  
      for audio_file_len_limit in [255, 300]:
          for n in range(num_examples):
              path_length = np.random.randint(
                  low=audio_file_len_limit, high=350
              )
              audio_file_path = str(Path(rand_name(path_length)))
  
              assert (
                  get_full_path(
                      audio_file_path,
                      audio_file_len_limit=audio_file_len_limit,
                  )
                  == audio_file_path
              ), f"Limit {audio_file_len_limit}: expected {audio_file_path} to be returned."
  
              audio_file_path_with_user = os.path.join(
                  "~", audio_file_path
              )
              audio_file_path_with_user_expected = os.path.expanduser(
                  audio_file_path_with_user
              )
              assert (
                  get_full_path(
                      audio_file_path_with_user,
                      audio_file_len_limit=audio_file_len_limit,
                  )
                  == audio_file_path_with_user_expected
              ), f"Limit {audio_file_len_limit}: expected {audio_file_path_with_user_expected} to be returned."
  
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 3 for calling the TestPreprocessingUtils obj's underlying member method code with example usage: obj.test_get_full_path_audio_file_len_limit() without return types