docstr: The purpose of this test suite is to verify that apply_codec functionalities do not exhibit
  abnormal behaviors.
docstr_tok: ["The","purpose","of","this","test","suite","is","to","verify","that","apply_codec","functionalities","do","not","exhibit","abnormal","behaviors","."]
code: def _smoke_test(self, format, compression, check_num_frames):
      """
      The purpose of this test suite is to verify that apply_codec functionalities do not exhibit
      abnormal behaviors.
      """
      sample_rate = 8000
      num_frames = 3 * sample_rate
      num_channels = 2
      waveform = torch.rand(num_channels, num_frames)
  
      augmented = F.apply_codec(
          waveform, sample_rate, format, True, compression
      )
      assert augmented.dtype == waveform.dtype
      assert augmented.shape[0] == num_channels
      if check_num_frames:
          assert augmented.shape[1] == num_frames
  
imports: import unittest
  import torch
  import torchaudio.functional
  from parameterized import parameterized
  from torchaudio_unittest.common_utils import PytorchTestCase, skipIfNoSox, TorchaudioTestCase
  from .functional_impl import Functional, FunctionalCPUOnly
label_desc: Use image node_id 1 for calling the TestApplyCodec obj's underlying member method code with example usage: obj._smoke_test(format, compression, check_num_frames) without return types