code: def _create_np_audio(
      num_channels: int, dtype: np.dtype
  ) -> np.ndarray:
      """Creates a random audio `np.array`."""
      if np.issubdtype(dtype, np.integer):
          dtype_info = np.iinfo(dtype)
      else:
          dtype_info = np.finfo(dtype)
  
      np_audio = np.random.randint(
          max(-(2**10), int(dtype_info.min)),
          min(2**10, int(dtype_info.max)),
          size=_shape_for_channels(num_channels, length=10),
      )
  
      return np_audio.astype(dtype)
  
imports: import array
  import pathlib
  import tempfile
  from absl.testing import parameterized
  import numpy
  import pydub
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import features
label_desc: Use image node_id 2 for calling a global function with example usage: _create_np_audio(num_channels, dtype) and returns: np_audio