class_docstr: Wrapper for transformations implemented with DALI that are meant to be used with
  automatic augmentations. You should not need to instantiate this class directly,
  use `@augmentation` decorator instead.
code: def _get_magnitudes(self, num_magnitude_bins):
      mag_range = self.mag_range
      if mag_range is None:
          return None
      if self._has_custom_magnitudes():
          if (
              num_magnitude_bins is not None
              and len(mag_range) != num_magnitude_bins
          ):
              raise Exception(
                  f"The augmentation `{self.name}` has nd.array of length {len(mag_range)} "
                  f"specified as the `mag_range`. However, the `num_magnitude_bins` "
                  f"passed to the call is {num_magnitude_bins}."
              )
          return mag_range
      if num_magnitude_bins is None:
          raise Exception(
              f"The `num_magnitude_bins` argument is missing in the call of "
              f"the `{self.name}` augmentation. Please specify the `num_magnitude_bins` "
              f"along with the samples and magnitude_bin."
              f"\nError in augmentation: {self}."
          )
      if not hasattr(mag_range, "__len__") or len(mag_range) != 2:
          raise Exception(
              f"The `mag_range` must be a tuple of (low, high) ends of magnitude range or "
              f"nd.array of explicitly defined magnitudes. Got `{self.mag_range}` for "
              f"augmentation `{self.name}`."
          )
      lo, hi = mag_range
      return np.linspace(lo, hi, num_magnitude_bins, dtype=np.float32)
  
imports: import warnings
  from typing import Callable, Tuple, Optional, Union
  from nvidia.dali import fn, types
  from nvidia.dali.data_node import DataNode
  from nvidia.dali.auto_aug.core._args import filter_extra_accepted_kwargs, get_missing_kwargs, get_num_positional_args, MissingArgException
  from numpy import typing
label_desc: Use image node_id 16 for calling the Augmentation obj's underlying member method code with example usage: obj._get_magnitudes(num_magnitude_bins) and returns: np, None, mag_range