docstr: Indexing simplifies creation of "signed magnitude bins" in cases when a single sample
  may be processed by a sequence of random augmentations - we can sample random signs once
  for the full sequence and then use indexing to access each single signed magnitude bin.
docstr_tok: ["Indexing","simplifies","creation","of","``","signed","magnitude","bins","''","in","cases","when","a","single","sample","may","be","processed","by","a","sequence","of","random","augmentations","-","we","can","sample","random","signs","once","for","the","full","sequence","and","then","use","indexing","to","access","each","single","signed","magnitude","bin","."]
code: def __getitem__(self, idx: int):
      """
      Indexing simplifies creation of "signed magnitude bins" in cases when a single sample
      may be processed by a sequence of random augmentations - we can sample random signs once
      for the full sequence and then use indexing to access each single signed magnitude bin.
      """
      if isinstance(self._magnitude_bin, int):
          magnitude_bin = self._magnitude_bin
      else:
          magnitude_bin = self._magnitude_bin[idx]
      cls = self.__class__
      return cls(
          magnitude_bin,
          self._random_sign[idx],
          self._signed_magnitude_idx[idx],
      )
  
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 2 for calling the _SignedMagnitudeBin obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: cls