class_docstr: This module implements Expectation over Transformation preprocessing for image rotation in PyTorch.
code: def _check_params(self) -> None:
      # pylint: disable=R0916
      if (
          self.label_type == "classification"
          and not isinstance(self.angles, (int, float, tuple, list))
          or (
              isinstance(self.angles, tuple)
              and (
                  len(self.angles) != 2
                  or not isinstance(self.angles[0], (int, float))
                  or not isinstance(self.angles[1], (int, float))
                  or self.angles[0] > self.angles[1]
              )
          )
      ):
          raise ValueError(
              "The range of angles must be a float in the range (0.0, 180.0]."
          )
  
      if self.label_type not in self.label_types:
          raise ValueError(
              f"The input for label_type needs to be one of {self.label_types},"
              f"currently receiving `{self.label_type}`."
          )
  
      if self.label_type == "object_detection":
          if not isinstance(self.angles, list):
              raise ValueError(
                  """For `label_type="object_detection"` only a list of multiples of 90 degrees is supported."""
              )
          if isinstance(self.angles, list):
              for angle in self.angles:
                  if divmod(angle, 90)[1] != 0:
                      raise ValueError(
                          """For `label_type="object_detection"` only a list of multiples of 90 degrees is
                                 supported."""
                      )
  
file_path: adversarial-robustness-toolbox/art/preprocessing/expectation_over_transformation/image_rotation/pytorch.py
imports: import logging
  from typing import Dict, List, Optional, TYPE_CHECKING, Tuple, Union
  import numpy
  from art.preprocessing.expectation_over_transformation.pytorch import EoTPyTorch
label_desc: Use image node_id 3 for calling the EoTImageRotationPyTorch obj's underlying member method code with example usage: obj._check_params() without return types