code: def __post_init__(self):
      # validate `task`
      APIFeaturesManager.check_supported_task(task=self.task)
  
      # validate `task_args`
      if self.task == "text-classification":
          message = "For text classification, whether the task is regression should be explicity specified in the task_args.is_regression key."
          assert self.task_args is not None, message
          assert self.task_args["is_regression"] is not None, message
  
      # validate `dataset`
      if self.quantization_approach == "static":
          assert self.dataset[
              "calibration_split"
          ], "Calibration split should be passed for static quantization in the dataset.calibration_split key."
  
      # validate `calibration`
      if self.quantization_approach == "static":
          assert (
              self.calibration
          ), "Calibration parameters should be passed for static quantization in the calibration key."
  
      # validate `aware_training`
      assert (
          self.aware_training is False
      ), "Quantization-Aware Training not supported."
  
imports: import platform
  from dataclasses import field
  from enum import Enum
  from typing import Dict, List, Optional, Union
  from .None import is_pydantic_available
  from .doc import generate_doc_dataclass
label_desc: Use image node_id 1 for calling the Run obj's underlying member method code with example usage: obj.__post_init__() without return types