code: def _convert_samples_to_float32(samples):
      """Convert sample type to float32.
      Audio sample type is usually integer or float-point.
      Integers will be scaled to [-1, 1] in float32.
      """
      float32_samples = samples.astype("float32")
      if samples.dtype in np.sctypes["int"]:
          bits = np.iinfo(samples.dtype).bits
          float32_samples *= 1.0 / 2 ** (bits - 1)
      elif samples.dtype in np.sctypes["float"]:
          pass
      else:
          raise TypeError(
              "Unsupported sample type: %s." % samples.dtype
          )
      return float32_samples
  
imports: import nose_utils
  import nvidia.dali.fn
  from nvidia.dali import pipeline_def
  import nvidia.dali.types
  from test_utils import get_files, to_array
  import numpy
  import librosa
  import torch
  import math
  import random
  import os
  from nose.tools import nottest
label_desc: Use image node_id 1 for calling a global function with example usage: _convert_samples_to_float32(samples) and returns: float32_samples