class_docstr: QualityCheck step for workflow.
class_docstr_tok: ["QualityCheck","step","for","workflow","."]
docstr: Updates the dictionary with cache configuration etc.
docstr_tok: ["Updates","the","dictionary","with","cache","configuration","etc","."]
code: def to_request(self) -> RequestType:
      """Updates the dictionary with cache configuration etc."""
      request_dict = super().to_request()
      if self.cache_config:
          request_dict.update(self.cache_config.config)
  
      if isinstance(self.quality_check_config, DataQualityCheckConfig):
          request_dict["CheckType"] = _DATA_QUALITY_TYPE
      else:
          request_dict["CheckType"] = _MODEL_QUALITY_TYPE
  
      request_dict[
          "ModelPackageGroupName"
      ] = self.model_package_group_name
      request_dict["SkipCheck"] = self.skip_check
      request_dict["FailOnViolation"] = self.fail_on_violation
      request_dict["RegisterNewBaseline"] = self.register_new_baseline
      request_dict[
          "SuppliedBaselineStatistics"
      ] = self.supplied_baseline_statistics
      request_dict[
          "SuppliedBaselineConstraints"
      ] = self.supplied_baseline_constraints
  
      return request_dict
  
imports: from __future__ import absolute_import
  from abc import ABC
  from typing import List, Union, Optional
  import os
  import pathlib
  import attr
  from sagemaker import s3
  from sagemaker.model_monitor import ModelMonitor
  from sagemaker.processing import ProcessingOutput, ProcessingJob, Processor, ProcessingInput
  from sagemaker.workflow import is_pipeline_variable
  from sagemaker.workflow.entities import RequestType, PipelineVariable
  from sagemaker.workflow.properties import Properties
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.steps import Step, StepTypeEnum, CacheConfig
  from sagemaker.workflow.check_job_config import CheckJobConfig
  from sagemaker.workflow.utilities import trim_request_dict
label_desc: Use image node_id 4 for calling the QualityCheckStep obj's underlying member method code with example usage: obj.to_request() and returns: request_dict