class_docstr: Audio segment abstraction.
  :param samples: Audio samples [num_samples x num_channels].
  :type samples: ndarray.float32
  :param sample_rate: Audio sample rate.
  :type sample_rate: int
  :raises TypeError: If the sample data type is not float or int.
docstr: Return whether two objects are equal.
docstr_tok: ["Return","whether","two","objects","are","equal","."]
code: def __eq__(self, other):
      """Return whether two objects are equal."""
      if type(other) is not type(self):
          return False
      if self._sample_rate != other._sample_rate:
          return False
      if self._samples.shape != other._samples.shape:
          return False
      if np.any(self.samples != other._samples):
          return False
      return True
  
imports: import math
  import os
  import random
  from typing import Optional
  import librosa
  import numpy
  import soundfile
  from nemo.collections.asr.parts.utils.audio_utils import select_channels
  from nemo.utils import logging
label_desc: Use image node_id 2 for calling the AudioSegment obj's underlying member method code with example usage: obj.__eq__(other) and returns: True, False, False, False, False