code: def _validate(self):
          
          if self.data_format is FormatType.PYTHON:
              self.data = self.raw_data
          elif self.data_format is FormatType.JSON:
              self._validate_json()
          elif self.data_format is FormatType.YAML:
              self._validate_yaml()
docs: Validate the input data.